OSDN Git Service

[media] fc2580: add missing error status when probe() fails
authorAntti Palosaari <crope@iki.fi>
Sat, 6 Jun 2015 11:15:34 +0000 (08:15 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 9 Jun 2015 20:22:57 +0000 (17:22 -0300)
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>
drivers/media/tuners/fc2580.c

index db21902..12f916e 100644 (file)
@@ -571,6 +571,7 @@ static int fc2580_probe(struct i2c_client *client,
        case 0x5a:
                break;
        default:
+               ret = -ENODEV;
                goto err_kfree;
        }