dmaengine: sirf-dma: 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: Romain Perier <romain.perier@gmail.com>
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Link: https://lore.kernel.org/r/20200831103542.305571-25-allen.lkml@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
Allen Pais 2020-08-31 16:05:31 +05:30 committed by Vinod Koul
parent 8a536883e0
commit 758cc054aa

View File

@ -393,9 +393,9 @@ static void sirfsoc_dma_process_completed(struct sirfsoc_dma *sdma)
} }
/* DMA Tasklet */ /* DMA Tasklet */
static void sirfsoc_dma_tasklet(unsigned long data) static void sirfsoc_dma_tasklet(struct tasklet_struct *t)
{ {
struct sirfsoc_dma *sdma = (void *)data; struct sirfsoc_dma *sdma = from_tasklet(sdma, t, tasklet);
sirfsoc_dma_process_completed(sdma); sirfsoc_dma_process_completed(sdma);
} }
@ -938,7 +938,7 @@ static int sirfsoc_dma_probe(struct platform_device *op)
list_add_tail(&schan->chan.device_node, &dma->channels); list_add_tail(&schan->chan.device_node, &dma->channels);
} }
tasklet_init(&sdma->tasklet, sirfsoc_dma_tasklet, (unsigned long)sdma); tasklet_setup(&sdma->tasklet, sirfsoc_dma_tasklet);
/* Register DMA engine */ /* Register DMA engine */
dev_set_drvdata(dev, sdma); dev_set_drvdata(dev, sdma);