mirror of https://gitee.com/openkylin/linux.git
[media] c8sectpfe: 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
8ae73ed608
commit
13bfc6728f
|
@ -865,9 +865,8 @@ static int c8sectpfe_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
/* Setup timer interrupt */
|
||||
init_timer(&fei->timer);
|
||||
fei->timer.function = c8sectpfe_timer_interrupt;
|
||||
fei->timer.data = (unsigned long)fei;
|
||||
setup_timer(&fei->timer, c8sectpfe_timer_interrupt,
|
||||
(unsigned long)fei);
|
||||
|
||||
mutex_init(&fei->lock);
|
||||
|
||||
|
|
Loading…
Reference in New Issue