mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
dmaengine: ep93xx: 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-7-allen.lkml@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
169bb74f89
commit
95fbf16349
@ -745,9 +745,9 @@ static void ep93xx_dma_advance_work(struct ep93xx_dma_chan *edmac)
|
|||||||
spin_unlock_irqrestore(&edmac->lock, flags);
|
spin_unlock_irqrestore(&edmac->lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ep93xx_dma_tasklet(unsigned long data)
|
static void ep93xx_dma_tasklet(struct tasklet_struct *t)
|
||||||
{
|
{
|
||||||
struct ep93xx_dma_chan *edmac = (struct ep93xx_dma_chan *)data;
|
struct ep93xx_dma_chan *edmac = from_tasklet(edmac, t, tasklet);
|
||||||
struct ep93xx_dma_desc *desc, *d;
|
struct ep93xx_dma_desc *desc, *d;
|
||||||
struct dmaengine_desc_callback cb;
|
struct dmaengine_desc_callback cb;
|
||||||
LIST_HEAD(list);
|
LIST_HEAD(list);
|
||||||
@ -1353,8 +1353,7 @@ static int __init ep93xx_dma_probe(struct platform_device *pdev)
|
|||||||
INIT_LIST_HEAD(&edmac->active);
|
INIT_LIST_HEAD(&edmac->active);
|
||||||
INIT_LIST_HEAD(&edmac->queue);
|
INIT_LIST_HEAD(&edmac->queue);
|
||||||
INIT_LIST_HEAD(&edmac->free_list);
|
INIT_LIST_HEAD(&edmac->free_list);
|
||||||
tasklet_init(&edmac->tasklet, ep93xx_dma_tasklet,
|
tasklet_setup(&edmac->tasklet, ep93xx_dma_tasklet);
|
||||||
(unsigned long)edmac);
|
|
||||||
|
|
||||||
list_add_tail(&edmac->chan.device_node,
|
list_add_tail(&edmac->chan.device_node,
|
||||||
&dma_dev->channels);
|
&dma_dev->channels);
|
||||||
|
Loading…
Reference in New Issue
Block a user