public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [media] vpif_display: fix error return code in vpif_probe()
@ 2013-05-13  5:57 Wei Yongjun
  2013-05-13  6:04 ` Prabhakar Lad
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Yongjun @ 2013-05-13  5:57 UTC (permalink / raw)
  To: prabhakar.csengg, mchehab
  Cc: yongjun_wei, linux-media, davinci-linux-open-source

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Fix to return -ENODEV in the subdevice register error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 drivers/media/platform/davinci/vpif_display.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/media/platform/davinci/vpif_display.c
index 1b3fb5c..50b2f39 100644
--- a/drivers/media/platform/davinci/vpif_display.c
+++ b/drivers/media/platform/davinci/vpif_display.c
@@ -1813,6 +1813,7 @@ static __init int vpif_probe(struct platform_device *pdev)
 						NULL);
 		if (!vpif_obj.sd[i]) {
 			vpif_err("Error registering v4l2 subdevice\n");
+			err = -ENODEV;
 			goto probe_subdev_out;
 		}
 


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-23  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-13  5:57 [PATCH] [media] vpif_display: fix error return code in vpif_probe() Wei Yongjun
2013-05-13  6:04 ` Prabhakar Lad
2013-05-23  9:25   ` Prabhakar Lad
2013-05-23  9:26     ` Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox