Commit 54617b52 authored by Allen Pais's avatar Allen Pais Committed by Greg Kroah-Hartman

staging: ralink-gdma: convert tasklets to use new tasklet_setup() API

In preparation for unconditionally passing the
struct tasklet_struct pointer to all tasklet
callbacks, switch to using the new tasklet_setup()
and from_tasklet() to pass the tasklet pointer explicitly.
Signed-off-by: default avatarRomain Perier <romain.perier@gmail.com>
Signed-off-by: default avatarAllen Pais <apais@linux.microsoft.com>
Link: https://lore.kernel.org/r/20200916062341.58322-1-allen.lkml@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 08446a45
...@@ -701,9 +701,9 @@ static void gdma_dma_desc_free(struct virt_dma_desc *vdesc) ...@@ -701,9 +701,9 @@ static void gdma_dma_desc_free(struct virt_dma_desc *vdesc)
kfree(container_of(vdesc, struct gdma_dma_desc, vdesc)); kfree(container_of(vdesc, struct gdma_dma_desc, vdesc));
} }
static void gdma_dma_tasklet(unsigned long arg) static void gdma_dma_tasklet(struct tasklet_struct *t)
{ {
struct gdma_dma_dev *dma_dev = (struct gdma_dma_dev *)arg; struct gdma_dma_dev *dma_dev = from_tasklet(dma_dev, t, task);
struct gdma_dmaengine_chan *chan; struct gdma_dmaengine_chan *chan;
static unsigned int last_chan; static unsigned int last_chan;
unsigned int i, chan_mask; unsigned int i, chan_mask;
...@@ -821,7 +821,7 @@ static int gdma_dma_probe(struct platform_device *pdev) ...@@ -821,7 +821,7 @@ static int gdma_dma_probe(struct platform_device *pdev)
if (IS_ERR(base)) if (IS_ERR(base))
return PTR_ERR(base); return PTR_ERR(base);
dma_dev->base = base; dma_dev->base = base;
tasklet_init(&dma_dev->task, gdma_dma_tasklet, (unsigned long)dma_dev); tasklet_setup(&dma_dev->task, gdma_dma_tasklet);
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) if (irq < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment