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 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index a8828ed..d53b2bf 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c @@ -514,14 +514,12 @@ static dma_cookie_t fsldma_run_tx_complete_actions(struct fsldma_chan *chan, BUG_ON(txd->cookie < 0); if (txd->cookie > 0) { + struct dmaengine_desc_callback cb; + ret = txd->cookie; /* Run the link descriptor callback function */ - if (txd->callback) { - chan_dbg(chan, "LD %p callback\n", desc); - txd->callback(txd->callback_param); - } - + dmaengine_desc_get_callback_invoke(txd, &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