Commit fae985d3 authored by Allen Pais's avatar Allen Pais Committed by Vinod Koul
Browse files

dmaengine: ipu: 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: default avatarRomain Perier <romain.perier@gmail.com>
Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Link: https://lore.kernel.org/r/20200831103542.305571-12-allen.lkml@gmail.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 5bbb671f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1299,9 +1299,9 @@ static irqreturn_t idmac_interrupt(int irq, void *dev_id)
	return IRQ_HANDLED;
}

static void ipu_gc_tasklet(unsigned long arg)
static void ipu_gc_tasklet(struct tasklet_struct *t)
{
	struct ipu *ipu = (struct ipu *)arg;
	struct ipu *ipu = from_tasklet(ipu, t, tasklet);
	int i;

	for (i = 0; i < IPU_CHANNELS_NUM; i++) {
@@ -1740,7 +1740,7 @@ static int __init ipu_probe(struct platform_device *pdev)
	if (ret < 0)
		goto err_idmac_init;

	tasklet_init(&ipu_data.tasklet, ipu_gc_tasklet, (unsigned long)&ipu_data);
	tasklet_setup(&ipu_data.tasklet, ipu_gc_tasklet);

	ipu_data.dev = &pdev->dev;