summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-05-03 09:58:04 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-05-03 09:58:04 +0200
commit6ec0c26a8ed7aac236c5269763cb2e98b3930688 (patch)
treeb091f3c74498f7f8191c694ed0fccf60344ebb05 /linux/drivers/media
parent14631b849c940b3898615f8861812f3522707815 (diff)
downloadmediapointer-dvb-s2-6ec0c26a8ed7aac236c5269763cb2e98b3930688.tar.gz
mediapointer-dvb-s2-6ec0c26a8ed7aac236c5269763cb2e98b3930688.tar.bz2
cafe_ccic: fix sensor detection
From: Hans Verkuil <hverkuil@xs4all.nl> Due to an uninitialized chip.ident field the chip identification failed. Priority: high Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Thanks-to: saeed bishara <saeed.bishara@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/cafe_ccic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cafe_ccic.c b/linux/drivers/media/video/cafe_ccic.c
index 40eb073fb..f1119efe6 100644
--- a/linux/drivers/media/video/cafe_ccic.c
+++ b/linux/drivers/media/video/cafe_ccic.c
@@ -775,6 +775,7 @@ static int cafe_cam_init(struct cafe_camera *cam)
ret = __cafe_cam_reset(cam);
if (ret)
goto out;
+ chip.ident == V4L2_IDENT_NONE;
chip.match.type = V4L2_CHIP_MATCH_I2C_ADDR;
chip.match.addr = cam->sensor_addr;
ret = sensor_call(cam, core, g_chip_ident, &chip);