forked from Minki/linux
[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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Reviewed-by: Archit Taneja <archit@ti.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
903cbb83d2
commit
6676cafe6b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user