diff mbox series

async_tx: use dmaengine_submit() API

Message ID 1622908639-8774-1-git-send-email-xianting_tian@126.com
State New
Headers show
Series async_tx: use dmaengine_submit() API | expand

Commit Message

Xianting Tian June 5, 2021, 3:57 p.m. UTC
Use the introduced API to submit DMA desc.

Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
---
 crypto/async_tx/async_tx.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/crypto/async_tx/async_tx.c b/crypto/async_tx/async_tx.c
index 9256934..c95d90f 100644
--- a/crypto/async_tx/async_tx.c
+++ b/crypto/async_tx/async_tx.c
@@ -14,6 +14,7 @@ 
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/async_tx.h>
+#include <linux/dmaengine.h>
 
 #ifdef CONFIG_DMA_ENGINE
 static int __init async_tx_init(void)
@@ -110,7 +111,7 @@  struct dma_chan *
 
 		if (intr_tx) {
 			txd_clear_parent(intr_tx);
-			intr_tx->tx_submit(intr_tx);
+			dmaengine_submit(intr_tx);
 			async_tx_ack(intr_tx);
 		}
 		device->device_issue_pending(chan);
@@ -118,7 +119,7 @@  struct dma_chan *
 		if (dma_wait_for_async_tx(depend_tx) != DMA_COMPLETE)
 			panic("%s: DMA error waiting for depend_tx\n",
 			      __func__);
-		tx->tx_submit(tx);
+		dmaengine_submit(tx);
 	}
 }