[media] wl128x: 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
13bfc6728f
commit
729dee30dd
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user