1
0
Fork 0

dmaengine: dmatest: use dmaengine_terminate_sync() instead

The `dmaengine_terminate_all()` is marked as deprecated, so update the test
with `dmaengine_terminate_sync()` which is the recommended alternative.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
hifive-unleashed-5.1
Alexandru Ardelean 2018-10-29 11:23:36 +02:00 committed by Vinod Koul
parent 0255200bd2
commit fbffb6b4d4
1 changed files with 2 additions and 2 deletions

View File

@ -810,7 +810,7 @@ err_thread_type:
/* terminate all transfers on specified channels */
if (ret || failed_tests)
dmaengine_terminate_all(chan);
dmaengine_terminate_sync(chan);
thread->done = true;
wake_up(&thread_wait);
@ -834,7 +834,7 @@ static void dmatest_cleanup_channel(struct dmatest_chan *dtc)
}
/* terminate all transfers on specified channels */
dmaengine_terminate_all(dtc->chan);
dmaengine_terminate_sync(dtc->chan);
kfree(dtc);
}