[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:
Geliang Tang 2017-04-08 22:34:06 -03:00 committed by Mauro Carvalho Chehab
parent 8ae73ed608
commit 13bfc6728f
1 changed files with 2 additions and 3 deletions

View File

@ -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);