Commit 32579c0c authored by Allen Pais's avatar Allen Pais Committed by Mauro Carvalho Chehab

media: pxa_camera: 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 069e4cdb
...@@ -1150,9 +1150,9 @@ static void pxa_camera_deactivate(struct pxa_camera_dev *pcdev) ...@@ -1150,9 +1150,9 @@ static void pxa_camera_deactivate(struct pxa_camera_dev *pcdev)
clk_disable_unprepare(pcdev->clk); clk_disable_unprepare(pcdev->clk);
} }
static void pxa_camera_eof(unsigned long arg) static void pxa_camera_eof(struct tasklet_struct *t)
{ {
struct pxa_camera_dev *pcdev = (struct pxa_camera_dev *)arg; struct pxa_camera_dev *pcdev = from_tasklet(pcdev, t, task_eof);
unsigned long cifr; unsigned long cifr;
struct pxa_buffer *buf; struct pxa_buffer *buf;
...@@ -2391,7 +2391,7 @@ static int pxa_camera_probe(struct platform_device *pdev) ...@@ -2391,7 +2391,7 @@ static int pxa_camera_probe(struct platform_device *pdev)
goto exit_free_dma; goto exit_free_dma;
} }
tasklet_init(&pcdev->task_eof, pxa_camera_eof, (unsigned long)pcdev); tasklet_setup(&pcdev->task_eof, pxa_camera_eof);
pxa_camera_activate(pcdev); pxa_camera_activate(pcdev);
......
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