Commit 6676cafe authored by Wei Yongjun's avatar Wei Yongjun Committed by Mauro Carvalho Chehab

[media] v4l: ti-vpe: fix error return code in vpe_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: default avatarArchit Taneja <archit@ti.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 903cbb83
...@@ -2007,8 +2007,10 @@ static int vpe_probe(struct platform_device *pdev) ...@@ -2007,8 +2007,10 @@ static int vpe_probe(struct platform_device *pdev)
vpe_top_vpdma_reset(dev); vpe_top_vpdma_reset(dev);
dev->vpdma = vpdma_create(pdev); dev->vpdma = vpdma_create(pdev);
if (IS_ERR(dev->vpdma)) if (IS_ERR(dev->vpdma)) {
ret = PTR_ERR(dev->vpdma);
goto runtime_put; goto runtime_put;
}
vfd = &dev->vfd; vfd = &dev->vfd;
*vfd = vpe_videodev; *vfd = vpe_videodev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment