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 коммит произвёл Mark Brown
Родитель 92e963f50f
Коммит a3ff958236
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

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