Commit fbffb6b4 authored by Alexandru Ardelean's avatar Alexandru Ardelean Committed by Vinod Koul
Browse files

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: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 0255200b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
}