Browse Source

[media] davinci: vpif_display: fix error return code in vpif_probe()

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>
Wei Yongjun 12 years ago
parent
commit
9d3e976bb1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/media/platform/davinci/vpif_display.c

+ 1 - 0
drivers/media/platform/davinci/vpif_display.c

@@ -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;
 			}