diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-01-03 15:48:20 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-04 12:27:00 +0000 |
commit | cf1716e9dae5b21b9bbcfe5eb0106c3b0aee37e8 (patch) | |
tree | c9b0331c309d66817528b6b264edfa6eedbf1ef0 /drivers/spi | |
parent | 13288bdf4adbaa6bd1267f10044c1bc25d90ce7f (diff) | |
download | linux-cf1716e9dae5b21b9bbcfe5eb0106c3b0aee37e8.tar.gz linux-cf1716e9dae5b21b9bbcfe5eb0106c3b0aee37e8.tar.bz2 linux-cf1716e9dae5b21b9bbcfe5eb0106c3b0aee37e8.zip |
spi: dw-mid: switch to new dmaengine_terminate_* API (part 2)
The commit a3ff9582369e ("spi: dw-mid: switch to new dmaengine_terminate_*
API") converted mid_spi_dma_exit() but missed mid_spi_dma_stop().
This is follow up to convert the rest.
Fixes: a3ff9582369e ("spi: dw-mid: switch to new dmaengine_terminate_* API")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-dw-mid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c index e31971f91475..837cb8d0bac6 100644 --- a/drivers/spi/spi-dw-mid.c +++ b/drivers/spi/spi-dw-mid.c @@ -274,11 +274,11 @@ static int mid_spi_dma_transfer(struct dw_spi *dws, struct spi_transfer *xfer) static void mid_spi_dma_stop(struct dw_spi *dws) { if (test_bit(TX_BUSY, &dws->dma_chan_busy)) { - dmaengine_terminate_all(dws->txchan); + dmaengine_terminate_sync(dws->txchan); clear_bit(TX_BUSY, &dws->dma_chan_busy); } if (test_bit(RX_BUSY, &dws->dma_chan_busy)) { - dmaengine_terminate_all(dws->rxchan); + dmaengine_terminate_sync(dws->rxchan); clear_bit(RX_BUSY, &dws->dma_chan_busy); } } |