diff options
author | Antti Palosaari <crope@iki.fi> | 2015-06-06 14:15:34 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-06-09 23:22:57 +0300 |
commit | f00245c2e8cf18b37d26674c88915c5238c2815e (patch) | |
tree | 15f29018a3bacbeb27d27f6c8d9f02128d5f277b /drivers/media/tuners | |
parent | ab80b19bb99933df415817370a64ac7e7c688896 (diff) | |
download | linux-f00245c2e8cf18b37d26674c88915c5238c2815e.tar.xz |
[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>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r-- | drivers/media/tuners/fc2580.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/tuners/fc2580.c b/drivers/media/tuners/fc2580.c index db21902b6e63..12f916e53150 100644 --- a/drivers/media/tuners/fc2580.c +++ b/drivers/media/tuners/fc2580.c @@ -571,6 +571,7 @@ static int fc2580_probe(struct i2c_client *client, case 0x5a: break; default: + ret = -ENODEV; goto err_kfree; } |