[media] davinci: vpif_display: fix error return code in vpif_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 23 Aug 2013 01:59:44 +0000 (22:59 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 26 Aug 2013 10:54:33 +0000 (07:54 -0300)
Fix to return -ENODEV in the subdevice register error handling
case instead of 0, as done elsewhere in this function.
Introduce by commit 4b8a531e6bb0686203e9cf82a54dfe189de7d5c2.
([media] media: davinci: vpif: display: add V4L2-async support)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/davinci/vpif_display.c

index f2b4ae1a6a7b86b868df4e5417aec3a993753a85..c31bcf129a5de08122744d7ad0dae956440a5385 100644 (file)
@@ -1818,6 +1818,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;
                        }
 
This page took 0.026316 seconds and 5 git commands to generate.