diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-04-27 11:31:27 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-27 14:43:51 -0400 |
commit | 51dec1f1abef9771d9085c2336234b28b3e78821 (patch) | |
tree | e41fc873667eb28491e7c0bfe04bbdb091d1244b /drivers/media/video/ivtv/ivtv-i2c.c | |
parent | 74cab31c413c8615efe818d44ff4ac83e2a138be (diff) |
V4L/DVB (5356): Fix bogus error messages in ivtv for VIDIOC_G_CHIP_IDENT
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-i2c.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-i2c.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/ivtv/ivtv-i2c.c b/drivers/media/video/ivtv/ivtv-i2c.c index 17353415b0a3..07c7ed0fe445 100644 --- a/drivers/media/video/ivtv/ivtv-i2c.c +++ b/drivers/media/video/ivtv/ivtv-i2c.c | |||
@@ -567,7 +567,8 @@ int ivtv_call_i2c_client(struct ivtv *itv, int addr, unsigned int cmd, void *arg | |||
567 | return retval; | 567 | return retval; |
568 | } | 568 | } |
569 | } | 569 | } |
570 | IVTV_ERR("i2c addr 0x%02x not found for command 0x%x!\n", addr, cmd); | 570 | if (cmd != VIDIOC_G_CHIP_IDENT) |
571 | IVTV_ERR("i2c addr 0x%02x not found for command 0x%x!\n", addr, cmd); | ||
571 | return -ENODEV; | 572 | return -ENODEV; |
572 | } | 573 | } |
573 | 574 | ||
@@ -652,7 +653,8 @@ int ivtv_i2c_id(struct ivtv *itv, u32 id, unsigned int cmd, void *arg) | |||
652 | 653 | ||
653 | addr = ivtv_i2c_id_addr(itv, id); | 654 | addr = ivtv_i2c_id_addr(itv, id); |
654 | if (addr < 0) { | 655 | if (addr < 0) { |
655 | IVTV_ERR("i2c ID 0x%08x (%s) not found for command 0x%x!\n", | 656 | if (cmd != VIDIOC_G_CHIP_IDENT) |
657 | IVTV_ERR("i2c ID 0x%08x (%s) not found for command 0x%x!\n", | ||
656 | id, ivtv_i2c_id_name(id), cmd); | 658 | id, ivtv_i2c_id_name(id), cmd); |
657 | return addr; | 659 | return addr; |
658 | } | 660 | } |