summaryrefslogtreecommitdiff
path: root/drivers/dma/plx_dma.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/plx_dma.c
parentda75ba2482658a0d9ea5245fadfea6b464fab7a3 (diff)
parent86ae924a91a4a4297ad9f47e131f74b1dab6cb7a (diff)
downloadlinux-a841592fb3a70bc3f3c2eaa2c1781479a52f76f9.tar.gz
linux-a841592fb3a70bc3f3c2eaa2c1781479a52f76f9.tar.bz2
linux-a841592fb3a70bc3f3c2eaa2c1781479a52f76f9.zip
Merge branch 'topic/tasklet' into next
Diffstat (limited to 'drivers/dma/plx_dma.c')
-rw-r--r--drivers/dma/plx_dma.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/dma/plx_dma.c b/drivers/dma/plx_dma.c
index db4c5fd453a9..f387c5bbc170 100644
--- a/drivers/dma/plx_dma.c
+++ b/drivers/dma/plx_dma.c
@@ -241,9 +241,9 @@ static void plx_dma_stop(struct plx_dma_dev *plxdev)
rcu_read_unlock();
}
-static void plx_dma_desc_task(unsigned long data)
+static void plx_dma_desc_task(struct tasklet_struct *t)
{
- struct plx_dma_dev *plxdev = (void *)data;
+ struct plx_dma_dev *plxdev = from_tasklet(plxdev, t, desc_task);
plx_dma_process_desc(plxdev);
}
@@ -513,8 +513,7 @@ static int plx_dma_create(struct pci_dev *pdev)
}
spin_lock_init(&plxdev->ring_lock);
- tasklet_init(&plxdev->desc_task, plx_dma_desc_task,
- (unsigned long)plxdev);
+ tasklet_setup(&plxdev->desc_task, plx_dma_desc_task);
RCU_INIT_POINTER(plxdev->pdev, pdev);
plxdev->bar = pcim_iomap_table(pdev)[0];