]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/media/video/tea6415c.c
[media] tea6415c: return -EIO if i2c_check_functionality fails
[mv-sheeva.git] / drivers / media / video / tea6415c.c
index 3e99cea8e4dc87e46449be5352660b8b9ae48188..19621ed523ec605c6f55945eb43c1cf19dd5febb 100644 (file)
@@ -148,7 +148,7 @@ static int tea6415c_probe(struct i2c_client *client,
 
        /* let's see whether this adapter can support what we need */
        if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_WRITE_BYTE))
-               return 0;
+               return -EIO;
 
        v4l_info(client, "chip found @ 0x%x (%s)\n",
                        client->addr << 1, client->adapter->name);