forked from luck/tmp_suning_uos_patched
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:
parent
8a536883e0
commit
758cc054aa
|
@ -393,9 +393,9 @@ static void sirfsoc_dma_process_completed(struct sirfsoc_dma *sdma)
|
|||
}
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
@ -938,7 +938,7 @@ static int sirfsoc_dma_probe(struct platform_device *op)
|
|||
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 */
|
||||
dev_set_drvdata(dev, sdma);
|
||||
|
|
Loading…
Reference in New Issue
Block a user