diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-03 21:34:27 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-03 21:34:27 -0300 |
commit | adacc8e7aa06a06a13dd78a533e0b2d02341887f (patch) | |
tree | c1c2401ed2a0058459dd63a4cc0de7b18c7b89a2 /linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c | |
parent | 076025d4e103147cbc6a8ad177824e15ff0143d9 (diff) | |
parent | ce6025ded70648148a8c6c4f440a55e940df1e9e (diff) | |
download | mediapointer-dvb-s2-adacc8e7aa06a06a13dd78a533e0b2d02341887f.tar.gz mediapointer-dvb-s2-adacc8e7aa06a06a13dd78a533e0b2d02341887f.tar.bz2 |
merge: http://linuxtv.org/hg/~tap/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c')
-rw-r--r-- | linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c b/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c index 2bd7d4d99..7e79f7eca 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c +++ b/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c @@ -104,7 +104,11 @@ int s5k4aa_probe(struct sd *sd) } /* Test some registers, but we don't know their exact meaning yet */ - if (m5602_read_sensor(sd, 0x00, prod_id, sizeof(prod_id))) + if (m5602_read_sensor(sd, 0x00, prod_id, 2)) + return -ENODEV; + if (m5602_read_sensor(sd, 0x02, prod_id+2, 2)) + return -ENODEV; + if (m5602_read_sensor(sd, 0x04, prod_id+4, 2)) return -ENODEV; if (memcmp(prod_id, expected_prod_id, sizeof(prod_id))) |