[PATCH 09/40] dmaengine: fsldma: convert callback to helper function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Convert driver to use the new helper function for callback

Signed-off-by: Dave Jiang <dave.jiang@xxxxxxxxx>
Cc: Li Yang <leoli@xxxxxxxxxxxxx>
---
 drivers/dma/fsldma.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index a8828ed..1251e00 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -514,12 +514,15 @@ static dma_cookie_t fsldma_run_tx_complete_actions(struct fsldma_chan *chan,
 	BUG_ON(txd->cookie < 0);
 
 	if (txd->cookie > 0) {
+		struct dma_desc_callback cb;
+
 		ret = txd->cookie;
 
 		/* Run the link descriptor callback function */
-		if (txd->callback) {
+		dmaengine_desc_get_callback(txd, &cb);
+		if (desc->callback) {
 			chan_dbg(chan, "LD %p callback\n", desc);
-			txd->callback(txd->callback_param);
+			dmaengine_desc_callback_invoke(&cb, NULL);
 		}
 
 		dma_descriptor_unmap(txd);

--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux