spi: dw-mid: switch to new dmaengine_terminate_* API
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 5 Feb 2016 14:46:26 +0000 (16:46 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 5 Feb 2016 17:41:49 +0000 (17:41 +0000)
Convert dmaengine_terminate_all() calls to synchronous versions.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-mid.c

index 9185f6c08459842e68a6292dbae6b6884d53fcde..e31971f91475b1b3d9f1b2011e0b6e4e2ae4697b 100644 (file)
@@ -89,10 +89,10 @@ static void mid_spi_dma_exit(struct dw_spi *dws)
        if (!dws->dma_inited)
                return;
 
-       dmaengine_terminate_all(dws->txchan);
+       dmaengine_terminate_sync(dws->txchan);
        dma_release_channel(dws->txchan);
 
-       dmaengine_terminate_all(dws->rxchan);
+       dmaengine_terminate_sync(dws->rxchan);
        dma_release_channel(dws->rxchan);
 }