summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-11-11 16:40:20 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-22 10:40:52 +0300
commite04e581093d74249f27411ed95878b648b222e53 (patch)
tree71a2d88da9e326a831f29fe25b766815d2b12b2f /drivers
parent820b1a93f4deb69f875f42aab5ed936cca70384f (diff)
downloadlinux-e04e581093d74249f27411ed95878b648b222e53.tar.xz
[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')
-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;
}