Commit 13bfc672 authored by Geliang Tang's avatar Geliang Tang Committed by Mauro Carvalho Chehab

[media] c8sectpfe: 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 8ae73ed6
...@@ -865,9 +865,8 @@ static int c8sectpfe_probe(struct platform_device *pdev) ...@@ -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);
......
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