summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2014-10-11 21:10:35 +0530
committerMark Brown <broonie@kernel.org>2014-10-20 12:24:18 +0100
commit5398ad6897ec666a416b1d7428f0e8a51adf4254 (patch)
treea542c6ad40f6bdaff71c8895f723630616fe299e /drivers/spi
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
downloadblackbird-op-linux-5398ad6897ec666a416b1d7428f0e8a51adf4254.tar.gz
blackbird-op-linux-5398ad6897ec666a416b1d7428f0e8a51adf4254.zip
spi/atmel: use dmaengine_terminate_all() API
The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon Signed-off-by: Vinod Koul <vinod.koul@intel.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-atmel.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
index 113c83f44b5c..649dcb5a603c 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -482,11 +482,9 @@ error:
static void atmel_spi_stop_dma(struct atmel_spi *as)
{
if (as->dma.chan_rx)
- as->dma.chan_rx->device->device_control(as->dma.chan_rx,
- DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(as->dma.chan_rx);
if (as->dma.chan_tx)
- as->dma.chan_tx->device->device_control(as->dma.chan_tx,
- DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(as->dma.chan_tx);
}
static void atmel_spi_release_dma(struct atmel_spi *as)
OpenPOWER on IntegriCloud