[media] sh_mobile_ceu_camera: set field to FIELD_NONE
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 15 Jun 2015 11:33:35 +0000 (08:33 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 12:50:57 +0000 (09:50 -0300)
Make sure that 'field' isn't FIELD_ANY when the driver is
first loaded. Fixes a v4l2-compliance failure.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c

index 8881efe..efdeea4 100644 (file)
@@ -1775,6 +1775,7 @@ static int sh_mobile_ceu_probe(struct platform_device *pdev)
                pcdev->max_height = pcdev->pdata->max_height;
                pcdev->flags = pcdev->pdata->flags;
        }
+       pcdev->field = V4L2_FIELD_NONE;
 
        if (!pcdev->max_width) {
                unsigned int v;