[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:
Родитель
8ae73ed608
Коммит
13bfc6728f
|
@ -865,9 +865,8 @@ static int c8sectpfe_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Setup timer interrupt */
|
/* Setup timer interrupt */
|
||||||
init_timer(&fei->timer);
|
setup_timer(&fei->timer, c8sectpfe_timer_interrupt,
|
||||||
fei->timer.function = c8sectpfe_timer_interrupt;
|
(unsigned long)fei);
|
||||||
fei->timer.data = (unsigned long)fei;
|
|
||||||
|
|
||||||
mutex_init(&fei->lock);
|
mutex_init(&fei->lock);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче