[PATCH 2/2] fc2580: add missing error status when probe() fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We must return -ENODEV error on case probe() fails to detect chip.

Signed-off-by: Antti Palosaari <crope@xxxxxx>
---
 drivers/media/tuners/fc2580.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/tuners/fc2580.c b/drivers/media/tuners/fc2580.c
index db21902..12f916e 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;
 	}
 
-- 
http://palosaari.fi/

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux