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

[media] wl128x: 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 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment