diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-10-29 23:10:45 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-12-10 03:35:14 -0500 |
commit | 6676cafe6bb69898cdb94937651249d0999e4b59 (patch) | |
tree | 811847f5068dc922791a80fb4dc61974d1e0e672 /drivers/media/platform/ti-vpe | |
parent | 903cbb83d22a4c22acb48c2ed2580cc0bffaa772 (diff) |
[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')
-rw-r--r-- | drivers/media/platform/ti-vpe/vpe.c | 4 |
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) | |||
2007 | vpe_top_vpdma_reset(dev); | 2007 | vpe_top_vpdma_reset(dev); |
2008 | 2008 | ||
2009 | dev->vpdma = vpdma_create(pdev); | 2009 | dev->vpdma = vpdma_create(pdev); |
2010 | if (IS_ERR(dev->vpdma)) | 2010 | if (IS_ERR(dev->vpdma)) { |
2011 | ret = PTR_ERR(dev->vpdma); | ||
2011 | goto runtime_put; | 2012 | goto runtime_put; |
2013 | } | ||
2012 | 2014 | ||
2013 | vfd = &dev->vfd; | 2015 | vfd = &dev->vfd; |
2014 | *vfd = vpe_videodev; | 2016 | *vfd = vpe_videodev; |