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

[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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2007,8 +2007,10 @@ static int vpe_probe(struct platform_device *pdev)
	vpe_top_vpdma_reset(dev);

	dev->vpdma = vpdma_create(pdev);
	if (IS_ERR(dev->vpdma))
	if (IS_ERR(dev->vpdma)) {
		ret = PTR_ERR(dev->vpdma);
		goto runtime_put;
	}

	vfd = &dev->vfd;
	*vfd = vpe_videodev;