Commit 8ae73ed6 authored by Geliang Tang's avatar Geliang Tang Committed by Mauro Carvalho Chehab

[media] fsl-viu: 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 b4e80f3c
...@@ -1466,9 +1466,8 @@ static int viu_of_probe(struct platform_device *op) ...@@ -1466,9 +1466,8 @@ static int viu_of_probe(struct platform_device *op)
viu_dev->decoder = v4l2_i2c_new_subdev(&viu_dev->v4l2_dev, ad, viu_dev->decoder = v4l2_i2c_new_subdev(&viu_dev->v4l2_dev, ad,
"saa7113", VIU_VIDEO_DECODER_ADDR, NULL); "saa7113", VIU_VIDEO_DECODER_ADDR, NULL);
viu_dev->vidq.timeout.function = viu_vid_timeout; setup_timer(&viu_dev->vidq.timeout, viu_vid_timeout,
viu_dev->vidq.timeout.data = (unsigned long)viu_dev; (unsigned long)viu_dev);
init_timer(&viu_dev->vidq.timeout);
viu_dev->std = V4L2_STD_NTSC_M; viu_dev->std = V4L2_STD_NTSC_M;
viu_dev->first = 1; viu_dev->first = 1;
......
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