提交 9d3e976b 编写于 作者: W Wei Yongjun 提交者: Mauro Carvalho Chehab

[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 4b8a531e.
([media] media: davinci: vpif: display: add V4L2-async support)
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: NLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 c40ddfa3
...@@ -1818,6 +1818,7 @@ static __init int vpif_probe(struct platform_device *pdev) ...@@ -1818,6 +1818,7 @@ static __init int vpif_probe(struct platform_device *pdev)
NULL); NULL);
if (!vpif_obj.sd[i]) { if (!vpif_obj.sd[i]) {
vpif_err("Error registering v4l2 subdevice\n"); vpif_err("Error registering v4l2 subdevice\n");
err = -ENODEV;
goto probe_subdev_out; goto probe_subdev_out;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册