spi: atmel: Use dmaengine_prep_slave_sg() API
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 11 Jul 2014 16:13:28 +0000 (18:13 +0200)
committerMark Brown <broonie@linaro.org>
Wed, 16 Jul 2014 22:24:14 +0000 (23:24 +0100)
Use the inline wrapper introduced by commit
16052827d98fbc13c31ebad560af4bd53e2b4dd5 ("dmaengine/dma_slave: introduce
inline wrappers").

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-atmel.c

index 92a6f0d93233983700a87f5bd07c0ffcceb8b5f9..1fb90dda299bd32bbfc3d9e92c1dbd00932005fc 100644 (file)
@@ -597,21 +597,15 @@ static int atmel_spi_next_xfer_dma_submit(struct spi_master *master,
                goto err_exit;
 
        /* Send both scatterlists */
-       rxdesc = rxchan->device->device_prep_slave_sg(rxchan,
-                                       &as->dma.sgrx,
-                                       1,
-                                       DMA_FROM_DEVICE,
-                                       DMA_PREP_INTERRUPT | DMA_CTRL_ACK,
-                                       NULL);
+       rxdesc = dmaengine_prep_slave_sg(rxchan, &as->dma.sgrx, 1,
+                                        DMA_FROM_DEVICE,
+                                        DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
        if (!rxdesc)
                goto err_dma;
 
-       txdesc = txchan->device->device_prep_slave_sg(txchan,
-                                       &as->dma.sgtx,
-                                       1,
-                                       DMA_TO_DEVICE,
-                                       DMA_PREP_INTERRUPT | DMA_CTRL_ACK,
-                                       NULL);
+       txdesc = dmaengine_prep_slave_sg(txchan, &as->dma.sgtx, 1,
+                                        DMA_TO_DEVICE,
+                                        DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
        if (!txdesc)
                goto err_dma;