* [PATCH -next] [media] atmel-isc: fix error return code in atmel_isc_probe()
@ 2016-11-11 13:40 Wei Yongjun
0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2016-11-11 13:40 UTC (permalink / raw)
To: Songjun Wu, Mauro Carvalho Chehab; +Cc: Wei Yongjun, linux-media
From: Wei Yongjun <weiyongjun1@huawei.com>
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>
---
drivers/media/platform/atmel/atmel-isc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/media/platform/atmel/atmel-isc.c
index 8e25d3f..fa68fe9 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;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-11 13:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-11 13:40 [PATCH -next] [media] atmel-isc: fix error return code in atmel_isc_probe() Wei Yongjun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).