diff options
author | 2016-07-20 13:12:01 -0700 | |
---|---|---|
committer | 2016-08-08 08:11:40 +0530 | |
commit | 81141bac700568afec626abda493310720077043 (patch) | |
tree | f694019b890f4312eba0215d915d56c411c38d91 /drivers/dma/mmp_tdma.c | |
parent | dmaengine: mmp_pdma: convert callback to helper function (diff) | |
download | linux-81141bac700568afec626abda493310720077043.tar.gz linux-81141bac700568afec626abda493310720077043.tar.bz2 linux-81141bac700568afec626abda493310720077043.zip |
dmaengine: mmp_tdma: convert callback to helper function
This is in preperation of moving to a callback that provides results to the
callback for the transaction. The conversion will maintain current behavior
and the driver must convert to new callback mechanism at a later time in
order to receive results.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/mmp_tdma.c')
-rw-r--r-- | drivers/dma/mmp_tdma.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index b3441f57a364..0e933849e80f 100644 --- a/drivers/dma/mmp_tdma.c +++ b/drivers/dma/mmp_tdma.c @@ -349,9 +349,7 @@ static void dma_do_tasklet(unsigned long data) { struct mmp_tdma_chan *tdmac = (struct mmp_tdma_chan *)data; - if (tdmac->desc.callback) - tdmac->desc.callback(tdmac->desc.callback_param); - + dmaengine_desc_get_callback_invoke(&tdmac->desc, NULL); } static void mmp_tdma_free_descriptor(struct mmp_tdma_chan *tdmac) |