From: Antti Palosaari Date: Sat, 6 Jun 2015 11:15:34 +0000 (-0300) Subject: [media] fc2580: add missing error status when probe() fails X-Git-Tag: omap-for-v4.2/fixes-rc1^2~111^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f00245c2e8cf18b37d26674c88915c5238c2815e;p=pandora-kernel.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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; }