We must return -ENODEV error on case probe() fails to detect chip. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
@@ -571,6 +571,7 @@ static int fc2580_probe(struct i2c_client *client,
case 0x5a:
break;
default:
+ ret = -ENODEV;
goto err_kfree;
}