提交 f563607a 编写于 作者: G Geliang Tang 提交者: Mauro Carvalho Chehab

[media] ivtv: use setup_timer

Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: NGeliang Tang <geliangtang@gmail.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 d720e055
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册