diff mbox series

dmaengine: dmatest: use dmaengine_terminate_sync() instead

Message ID 20181029092336.11501-1-alexandru.ardelean@analog.com (mailing list archive)
State Superseded
Headers show
Series dmaengine: dmatest: use dmaengine_terminate_sync() instead | expand

Commit Message

Alexandru Ardelean Oct. 29, 2018, 9:23 a.m. UTC
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>
---
 drivers/dma/dmatest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Vinod Koul Nov. 24, 2018, 1:46 p.m. UTC | #1
On 29-10-18, 11:23, Alexandru Ardelean wrote:
> The `dmaengine_terminate_all()` is marked as deprecated, so update the test
> with `dmaengine_terminate_sync()` which is the recommended alternative.

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c
index aa1712beb0cc..9cd09e8f9b4f 100644
--- a/drivers/dma/dmatest.c
+++ b/drivers/dma/dmatest.c
@@ -812,7 +812,7 @@  static int dmatest_func(void *data)
 
 	/* 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);
@@ -836,7 +836,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);
 }