V4L/DVB (6465): Use correct error codes when chip is not recognized
[firefly-linux-kernel-4.4.55.git] / drivers / media / video / upd64083.c
index 08d2d643c65e9ceae848c6a62fc65ce17e150f83..7e32c5b0c29d03d12ccf4fc89588d9193b8c3b1c 100644 (file)
@@ -178,7 +178,7 @@ static int upd64083_probe(struct i2c_client *client)
        int i;
 
        if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA))
-               return 0;
+               return -EIO;
 
        v4l_info(client, "chip found @ 0x%x (%s)\n", client->addr << 1, client->adapter->name);