diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-10-11 11:40:35 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-20 07:24:18 -0400 |
commit | 5398ad6897ec666a416b1d7428f0e8a51adf4254 (patch) | |
tree | a542c6ad40f6bdaff71c8895f723630616fe299e /drivers/spi/spi-atmel.c | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) |
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/spi-atmel.c')
-rw-r--r-- | drivers/spi/spi-atmel.c | 6 |
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: | |||
482 | static void atmel_spi_stop_dma(struct atmel_spi *as) | 482 | static void atmel_spi_stop_dma(struct atmel_spi *as) |
483 | { | 483 | { |
484 | if (as->dma.chan_rx) | 484 | if (as->dma.chan_rx) |
485 | as->dma.chan_rx->device->device_control(as->dma.chan_rx, | 485 | dmaengine_terminate_all(as->dma.chan_rx); |
486 | DMA_TERMINATE_ALL, 0); | ||
487 | if (as->dma.chan_tx) | 486 | if (as->dma.chan_tx) |
488 | as->dma.chan_tx->device->device_control(as->dma.chan_tx, | 487 | dmaengine_terminate_all(as->dma.chan_tx); |
489 | DMA_TERMINATE_ALL, 0); | ||
490 | } | 488 | } |
491 | 489 | ||
492 | static void atmel_spi_release_dma(struct atmel_spi *as) | 490 | static void atmel_spi_release_dma(struct atmel_spi *as) |