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

[media] wl128x: 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>
上级 13bfc672
......@@ -1550,9 +1550,8 @@ int fmc_prepare(struct fmdev *fmdev)
atomic_set(&fmdev->tx_cnt, 1);
fmdev->resp_comp = NULL;
init_timer(&fmdev->irq_info.timer);
fmdev->irq_info.timer.function = &int_timeout_handler;
fmdev->irq_info.timer.data = (unsigned long)fmdev;
setup_timer(&fmdev->irq_info.timer, &int_timeout_handler,
(unsigned long)fmdev);
/*TODO: add FM_STIC_EVENT later */
fmdev->irq_info.mask = FM_MAL_EVENT;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册