]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dmaengine: dmatest: use dmaengine_terminate_sync() instead
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 29 Oct 2018 09:23:36 +0000 (11:23 +0200)
committerVinod Koul <vkoul@kernel.org>
Sat, 24 Nov 2018 13:46:46 +0000 (19:16 +0530)
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>
drivers/dma/dmatest.c

index 5d4b1e053fb7ddeaff89a3641a440a4d25d4b1b7..214391ba019a97085e31eb0384aa87b82b67d0e8 100644 (file)
@@ -810,7 +810,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);
@@ -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);
 }