Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=51dec1f1abef9771d9085c2336234b28b3e78821
Commit:     51dec1f1abef9771d9085c2336234b28b3e78821
Parent:     74cab31c413c8615efe818d44ff4ac83e2a138be
Author:     Hans Verkuil <[EMAIL PROTECTED]>
AuthorDate: Fri Apr 27 12:31:27 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 15:43:51 2007 -0300

    V4L/DVB (5356): Fix bogus error messages in ivtv for VIDIOC_G_CHIP_IDENT
    
    Signed-off-by: Hans Verkuil <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 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 1735341..07c7ed0 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
                        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;
 }
 
@@ -652,7 +653,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;
        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to