summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorHans Verkuil2015-06-15 13:33:35 +0200
committerMauro Carvalho Chehab2015-08-11 14:50:57 +0200
commitfd41c1af4ed14f9bc8591687c29d8a21d5a63d51 (patch)
treec61cde56860169af163eb0497256a4b84571bf9b /drivers/media/platform
parent[media] sh_mobile_ceu_camera: fix querycap (diff)
downloadkernel-qcow2-linux-fd41c1af4ed14f9bc8591687c29d8a21d5a63d51.tar.gz
kernel-qcow2-linux-fd41c1af4ed14f9bc8591687c29d8a21d5a63d51.tar.xz
kernel-qcow2-linux-fd41c1af4ed14f9bc8591687c29d8a21d5a63d51.zip
[media] sh_mobile_ceu_camera: set field to FIELD_NONE
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>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c
index 8881efe7e000..efdeea4490e8 100644
--- a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c
+++ b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c
@@ -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;