[media] v4l: ti-vpe: fix error return code in vpe_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 30 Oct 2013 03:10:45 +0000 (00:10 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 10 Dec 2013 08:35:14 +0000 (06:35 -0200)
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>
drivers/media/platform/ti-vpe/vpe.c

index 89658a3ab23e007883302b6cc0c3a2eef17153bb..1a31c8585a1b35bf238ec2f367eca13a78c46799 100644 (file)
@@ -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;