diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2007-03-09 15:43:39 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-27 14:44:21 -0400 |
commit | 5cdc178d1c7e677f0344b7b933d71c900ae73c85 (patch) | |
tree | 76aaaead1ddfe1369f3ec4b1be6b85748cca03ef /drivers/media/video/cpia_pp.c | |
parent | 15f189e9780d2859ee2bd5ee6b7180a010a9ebf5 (diff) |
V4L/DVB (5398): Cpia_pp.c: don't use _WORK_NAR
pp_cam_entry->cb_task need not to be _NOAUTOREL ... because in fact it is
never used ???
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cpia_pp.c')
-rw-r--r-- | drivers/media/video/cpia_pp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/cpia_pp.c b/drivers/media/video/cpia_pp.c index b12cec94f4cc..86bd08270ded 100644 --- a/drivers/media/video/cpia_pp.c +++ b/drivers/media/video/cpia_pp.c | |||
@@ -141,7 +141,6 @@ static void cpia_pp_run_callback(struct work_struct *work) | |||
141 | cam = container_of(work, struct pp_cam_entry, cb_task); | 141 | cam = container_of(work, struct pp_cam_entry, cb_task); |
142 | cb_func = cam->cb_func; | 142 | cb_func = cam->cb_func; |
143 | cb_data = cam->cb_data; | 143 | cb_data = cam->cb_data; |
144 | work_release(work); | ||
145 | 144 | ||
146 | cb_func(cb_data); | 145 | cb_func(cb_data); |
147 | } | 146 | } |
@@ -682,7 +681,7 @@ static int cpia_pp_registerCallback(void *privdata, void (*cb)(void *cbdata), vo | |||
682 | if(cam->port->irq != PARPORT_IRQ_NONE) { | 681 | if(cam->port->irq != PARPORT_IRQ_NONE) { |
683 | cam->cb_func = cb; | 682 | cam->cb_func = cb; |
684 | cam->cb_data = cbdata; | 683 | cam->cb_data = cbdata; |
685 | INIT_WORK_NAR(&cam->cb_task, cpia_pp_run_callback); | 684 | INIT_WORK(&cam->cb_task, cpia_pp_run_callback); |
686 | } else { | 685 | } else { |
687 | retval = -1; | 686 | retval = -1; |
688 | } | 687 | } |