mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
[media] ivtv: use setup_timer
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
d720e05594
commit
f563607ae9
1 changed files with 2 additions and 3 deletions
|
|
@ -770,9 +770,8 @@ static int ivtv_init_struct1(struct ivtv *itv)
|
|||
init_waitqueue_head(&itv->event_waitq);
|
||||
init_waitqueue_head(&itv->vsync_waitq);
|
||||
init_waitqueue_head(&itv->dma_waitq);
|
||||
init_timer(&itv->dma_timer);
|
||||
itv->dma_timer.function = ivtv_unfinished_dma;
|
||||
itv->dma_timer.data = (unsigned long)itv;
|
||||
setup_timer(&itv->dma_timer, ivtv_unfinished_dma,
|
||||
(unsigned long)itv);
|
||||
|
||||
itv->cur_dma_stream = -1;
|
||||
itv->cur_pio_stream = -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue