From: Allen Pais <allen.lkml@xxxxxxxxx> 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@xxxxxxxxx> Signed-off-by: Allen Pais <allen.lkml@xxxxxxxxx> --- drivers/rapidio/devices/tsi721_dma.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/rapidio/devices/tsi721_dma.c b/drivers/rapidio/devices/tsi721_dma.c index d375c02059f3..4a2bb6d7c692 100644 --- a/drivers/rapidio/devices/tsi721_dma.c +++ b/drivers/rapidio/devices/tsi721_dma.c @@ -566,9 +566,9 @@ static void tsi721_advance_work(struct tsi721_bdma_chan *bdma_chan, bdma_chan->id); } -static void tsi721_dma_tasklet(unsigned long data) +static void tsi721_dma_tasklet(struct tasklet_struct *t) { - struct tsi721_bdma_chan *bdma_chan = (struct tsi721_bdma_chan *)data; + struct tsi721_bdma_chan *bdma_chan = from_tasklet(bdma_chan, t, tasklet); u32 dmac_int, dmac_sts; dmac_int = ioread32(bdma_chan->regs + TSI721_DMAC_INT); @@ -988,8 +988,7 @@ int tsi721_register_dma(struct tsi721_device *priv) INIT_LIST_HEAD(&bdma_chan->queue); INIT_LIST_HEAD(&bdma_chan->free_list); - tasklet_init(&bdma_chan->tasklet, tsi721_dma_tasklet, - (unsigned long)bdma_chan); + tasklet_setup(&bdma_chan->tasklet, tsi721_dma_tasklet); list_add_tail(&bdma_chan->dchan.device_node, &mport->dma.channels); nr_channels++; -- 2.17.1