summaryrefslogtreecommitdiff
path: root/drivers/media/platform/atmel/atmel-isc.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-11-11 11:40:20 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-22 05:40:52 -0200
commite04e581093d74249f27411ed95878b648b222e53 (patch)
tree71a2d88da9e326a831f29fe25b766815d2b12b2f /drivers/media/platform/atmel/atmel-isc.c
parent820b1a93f4deb69f875f42aab5ed936cca70384f (diff)
[media] atmel-isc: fix error return code in atmel_isc_probe()
Fix to return error code -ENODEV from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/atmel/atmel-isc.c')
-rw-r--r--drivers/media/platform/atmel/atmel-isc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/media/platform/atmel/atmel-isc.c
index 8e25d3f56438..fa68fe912c95 100644
--- a/drivers/media/platform/atmel/atmel-isc.c
+++ b/drivers/media/platform/atmel/atmel-isc.c
@@ -1424,6 +1424,7 @@ static int atmel_isc_probe(struct platform_device *pdev)
if (list_empty(&isc->subdev_entities)) {
dev_err(dev, "no subdev found\n");
+ ret = -ENODEV;
goto unregister_v4l2_device;
}