Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e04e5810 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 820b1a93
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}