[media] fsl-viu: remove current_norm

The use of current_norm is deprecated, so remove it. This driver actually
already implements g_std, which overrides current_norm, but the 'std' field
was never initialized correctly. This has been fixed as well.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Hans Verkuil 2013-06-03 05:36:43 -03:00 committed by Mauro Carvalho Chehab
parent 2766a7a999
commit 28221f88ef
1 changed files with 1 additions and 1 deletions

View File

@ -1475,7 +1475,6 @@ static struct video_device viu_template = {
.release = video_device_release, .release = video_device_release,
.tvnorms = V4L2_STD_NTSC_M | V4L2_STD_PAL, .tvnorms = V4L2_STD_NTSC_M | V4L2_STD_PAL,
.current_norm = V4L2_STD_NTSC_M,
}; };
static int viu_of_probe(struct platform_device *op) static int viu_of_probe(struct platform_device *op)
@ -1546,6 +1545,7 @@ static int viu_of_probe(struct platform_device *op)
viu_dev->vidq.timeout.function = viu_vid_timeout; viu_dev->vidq.timeout.function = viu_vid_timeout;
viu_dev->vidq.timeout.data = (unsigned long)viu_dev; viu_dev->vidq.timeout.data = (unsigned long)viu_dev;
init_timer(&viu_dev->vidq.timeout); init_timer(&viu_dev->vidq.timeout);
viu_dev->std = V4L2_STD_NTSC_M;
viu_dev->first = 1; viu_dev->first = 1;
/* Allocate memory for video device */ /* Allocate memory for video device */