summaryrefslogtreecommitdiffstats
path: root/drivers/dma/nbpfaxi.c
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2020-10-01 10:18:59 +0530
committerVinod Koul <vkoul@kernel.org>2020-10-01 10:18:59 +0530
commita841592fb3a70bc3f3c2eaa2c1781479a52f76f9 (patch)
tree9b18939a0d411779e0640e862ac2d1b353b23cb7 /drivers/dma/nbpfaxi.c
parentda75ba2482658a0d9ea5245fadfea6b464fab7a3 (diff)
parent86ae924a91a4a4297ad9f47e131f74b1dab6cb7a (diff)
downloadlinux-a841592fb3a70bc3f3c2eaa2c1781479a52f76f9.tar.bz2
Merge branch 'topic/tasklet' into next
Diffstat (limited to 'drivers/dma/nbpfaxi.c')
-rw-r--r--drivers/dma/nbpfaxi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c
index ca4e0930207a..9c52c57919c6 100644
--- a/drivers/dma/nbpfaxi.c
+++ b/drivers/dma/nbpfaxi.c
@@ -1113,9 +1113,9 @@ static struct dma_chan *nbpf_of_xlate(struct of_phandle_args *dma_spec,
return dchan;
}
-static void nbpf_chan_tasklet(unsigned long data)
+static void nbpf_chan_tasklet(struct tasklet_struct *t)
{
- struct nbpf_channel *chan = (struct nbpf_channel *)data;
+ struct nbpf_channel *chan = from_tasklet(chan, t, tasklet);
struct nbpf_desc *desc, *tmp;
struct dmaengine_desc_callback cb;
@@ -1260,7 +1260,7 @@ static int nbpf_chan_probe(struct nbpf_device *nbpf, int n)
snprintf(chan->name, sizeof(chan->name), "nbpf %d", n);
- tasklet_init(&chan->tasklet, nbpf_chan_tasklet, (unsigned long)chan);
+ tasklet_setup(&chan->tasklet, nbpf_chan_tasklet);
ret = devm_request_irq(dma_dev->dev, chan->irq,
nbpf_chan_irq, IRQF_SHARED,
chan->name, chan);