]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] atmel-isc: fix error return code in atmel_isc_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 11 Nov 2016 13:40:20 +0000 (11:40 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 22 Nov 2016 07:40:52 +0000 (05:40 -0200)
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>
drivers/media/platform/atmel/atmel-isc.c

index 8e25d3f56438ab925021c34a49cfc58ebdae7674..fa68fe912c95e1aea4c38acfa84f13205ec2d50b 100644 (file)
@@ -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;
        }