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

dmaengine: mpc512x: 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-16-allen.lkml@gmail.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 77a4f4f7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -414,9 +414,9 @@ static void mpc_dma_process_completed(struct mpc_dma *mdma)
}

/* DMA Tasklet */
static void mpc_dma_tasklet(unsigned long data)
static void mpc_dma_tasklet(struct tasklet_struct *t)
{
	struct mpc_dma *mdma = (void *)data;
	struct mpc_dma *mdma = from_tasklet(mdma, t, tasklet);
	unsigned long flags;
	uint es;

@@ -1009,7 +1009,7 @@ static int mpc_dma_probe(struct platform_device *op)
		list_add_tail(&mchan->chan.device_node, &dma->channels);
	}

	tasklet_init(&mdma->tasklet, mpc_dma_tasklet, (unsigned long)mdma);
	tasklet_setup(&mdma->tasklet, mpc_dma_tasklet);

	/*
	 * Configure DMA Engine: