spi: pxa2xx: Use pxa_ssp_enable()/pxa_ssp_disable() in the driver
[linux-2.6-microblaze.git] / drivers / spi / spi-pxa2xx-dma.c
index e00dbad..5ca01ad 100644 (file)
@@ -50,9 +50,7 @@ static void pxa2xx_spi_dma_transfer_complete(struct driver_data *drv_data,
 
                if (error) {
                        /* In case we got an error we disable the SSP now */
-                       pxa2xx_spi_write(drv_data, SSCR0,
-                                        pxa2xx_spi_read(drv_data, SSCR0)
-                                        & ~SSCR0_SSE);
+                       pxa_ssp_disable(drv_data->ssp);
                        msg->status = -EIO;
                }