spi: dw-mid: switch to new dmaengine_terminate_* API

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>
This commit is contained in:
Andy Shevchenko 2016-02-05 16:46:26 +02:00 committed by Mark Brown
parent 92e963f50f
commit a3ff958236
1 changed files with 2 additions and 2 deletions

View 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);
}