Commit 0852d052 authored by Allen Pais's avatar Allen Pais Committed by Mauro Carvalho Chehab

media: smipcie: 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>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 6027ff6b
...@@ -280,9 +280,9 @@ static void smi_port_clearInterrupt(struct smi_port *port) ...@@ -280,9 +280,9 @@ static void smi_port_clearInterrupt(struct smi_port *port)
} }
/* tasklet handler: DMA data to dmx.*/ /* tasklet handler: DMA data to dmx.*/
static void smi_dma_xfer(unsigned long data) static void smi_dma_xfer(struct tasklet_struct *t)
{ {
struct smi_port *port = (struct smi_port *) data; struct smi_port *port = from_tasklet(port, t, tasklet);
struct smi_dev *dev = port->dev; struct smi_dev *dev = port->dev;
u32 intr_status, finishedData, dmaManagement; u32 intr_status, finishedData, dmaManagement;
u8 dmaChan0State, dmaChan1State; u8 dmaChan0State, dmaChan1State;
...@@ -422,7 +422,7 @@ static int smi_port_init(struct smi_port *port, int dmaChanUsed) ...@@ -422,7 +422,7 @@ static int smi_port_init(struct smi_port *port, int dmaChanUsed)
} }
smi_port_disableInterrupt(port); smi_port_disableInterrupt(port);
tasklet_init(&port->tasklet, smi_dma_xfer, (unsigned long)port); tasklet_setup(&port->tasklet, smi_dma_xfer);
tasklet_disable(&port->tasklet); tasklet_disable(&port->tasklet);
port->enable = 1; port->enable = 1;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment