Browse Source

[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>
Wei Yongjun 8 years ago
parent
commit
e04e581093
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/media/platform/atmel/atmel-isc.c

+ 1 - 0
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;
 	}