[media] fc2580: add missing error status when probe() fails
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>
This commit is contained in:
parent
ab80b19bb9
commit
f00245c2e8
1 changed files with 1 additions and 0 deletions
|
@ -571,6 +571,7 @@ static int fc2580_probe(struct i2c_client *client,
|
||||||
case 0x5a:
|
case 0x5a:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
ret = -ENODEV;
|
||||||
goto err_kfree;
|
goto err_kfree;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue