summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/ti-vpe/vpe.c
diff options
context:
space:
mode:
authorWei Yongjun2013-10-30 04:10:45 +0100
committerMauro Carvalho Chehab2013-12-10 09:35:14 +0100
commit6676cafe6bb69898cdb94937651249d0999e4b59 (patch)
tree811847f5068dc922791a80fb4dc61974d1e0e672 /drivers/media/platform/ti-vpe/vpe.c
parent[media] v4l: ti-vpe: use module_platform_driver to simplify the code (diff)
downloadkernel-qcow2-linux-6676cafe6bb69898cdb94937651249d0999e4b59.tar.gz
kernel-qcow2-linux-6676cafe6bb69898cdb94937651249d0999e4b59.tar.xz
kernel-qcow2-linux-6676cafe6bb69898cdb94937651249d0999e4b59.zip
[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>
Diffstat (limited to 'drivers/media/platform/ti-vpe/vpe.c')
-rw-r--r--drivers/media/platform/ti-vpe/vpe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c
index 89658a3ab23e..1a31c8585a1b 100644
--- a/drivers/media/platform/ti-vpe/vpe.c
+++ b/drivers/media/platform/ti-vpe/vpe.c
@@ -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;