Commit f563607a authored by Geliang Tang's avatar Geliang Tang Committed by Mauro Carvalho Chehab

[media] ivtv: use setup_timer

Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent d720e055
...@@ -770,9 +770,8 @@ static int ivtv_init_struct1(struct ivtv *itv) ...@@ -770,9 +770,8 @@ static int ivtv_init_struct1(struct ivtv *itv)
init_waitqueue_head(&itv->event_waitq); init_waitqueue_head(&itv->event_waitq);
init_waitqueue_head(&itv->vsync_waitq); init_waitqueue_head(&itv->vsync_waitq);
init_waitqueue_head(&itv->dma_waitq); init_waitqueue_head(&itv->dma_waitq);
init_timer(&itv->dma_timer); setup_timer(&itv->dma_timer, ivtv_unfinished_dma,
itv->dma_timer.function = ivtv_unfinished_dma; (unsigned long)itv);
itv->dma_timer.data = (unsigned long)itv;
itv->cur_dma_stream = -1; itv->cur_dma_stream = -1;
itv->cur_pio_stream = -1; itv->cur_pio_stream = -1;
......
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