Skip to content

Commit 5b92d8e

Browse files
Allen PaisJassiBrar
authored andcommitted
mailbox: bcm: 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> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
1 parent 549738f commit 5b92d8e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/mailbox/bcm-pdc-mailbox.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -962,9 +962,9 @@ static irqreturn_t pdc_irq_handler(int irq, void *data)
962962
* a DMA receive interrupt. Reenables the receive interrupt.
963963
* @data: PDC state structure
964964
*/
965-
static void pdc_tasklet_cb(unsigned long data)
965+
static void pdc_tasklet_cb(struct tasklet_struct *t)
966966
{
967-
struct pdc_state *pdcs = (struct pdc_state *)data;
967+
struct pdc_state *pdcs = from_tasklet(pdcs, t, rx_tasklet);
968968

969969
pdc_receive(pdcs);
970970

@@ -1589,7 +1589,7 @@ static int pdc_probe(struct platform_device *pdev)
15891589
pdc_hw_init(pdcs);
15901590

15911591
/* Init tasklet for deferred DMA rx processing */
1592-
tasklet_init(&pdcs->rx_tasklet, pdc_tasklet_cb, (unsigned long)pdcs);
1592+
tasklet_setup(&pdcs->rx_tasklet, pdc_tasklet_cb);
15931593

15941594
err = pdc_interrupts_init(pdcs);
15951595
if (err)

0 commit comments

Comments
 (0)