diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-02-28 00:31:04 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2007-02-28 00:31:04 +0100 |
commit | 776b4902b46a245bc73711ea0a27803dee95b7be (patch) | |
tree | 18a7cdc47b7662ae9467f34daa5becb64f9756ed /linux/drivers/media/video/ivtv/ivtv-i2c.c | |
parent | def3a3061098518446069b287d7eba281cfe0afe (diff) | |
download | mediapointer-dvb-s2-776b4902b46a245bc73711ea0a27803dee95b7be.tar.gz mediapointer-dvb-s2-776b4902b46a245bc73711ea0a27803dee95b7be.tar.bz2 |
Fix bogus error messages in ivtv for VIDIOC_G_CHIP_IDENT
From: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-i2c.c')
-rw-r--r-- | linux/drivers/media/video/ivtv/ivtv-i2c.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-i2c.c b/linux/drivers/media/video/ivtv/ivtv-i2c.c index 146a30979..464ee5bae 100644 --- a/linux/drivers/media/video/ivtv/ivtv-i2c.c +++ b/linux/drivers/media/video/ivtv/ivtv-i2c.c @@ -570,7 +570,8 @@ int ivtv_call_i2c_client(struct ivtv *itv, int addr, unsigned int cmd, void *arg return retval; } } - IVTV_ERR("i2c addr 0x%02x not found for command 0x%x!\n", addr, cmd); + if (cmd != VIDIOC_G_CHIP_IDENT) + IVTV_ERR("i2c addr 0x%02x not found for command 0x%x!\n", addr, cmd); return -ENODEV; } @@ -655,7 +656,8 @@ int ivtv_i2c_id(struct ivtv *itv, u32 id, unsigned int cmd, void *arg) addr = ivtv_i2c_id_addr(itv, id); if (addr < 0) { - IVTV_ERR("i2c ID 0x%08x (%s) not found for command 0x%x!\n", + if (cmd != VIDIOC_G_CHIP_IDENT) + IVTV_ERR("i2c ID 0x%08x (%s) not found for command 0x%x!\n", id, ivtv_i2c_id_name(id), cmd); return addr; } |