summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-13 01:57:37 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-05-27 08:51:39 -0300
commit4fa94e224b84be7b2522a0f5ce5b64124f146fac (patch)
treeabc0ee0b87344fcd240ac161683bbd28c288c0b6 /drivers
parentb2d2cf1015004209d6493f21b99788ded42eac11 (diff)
downloadlinux-4fa94e224b84be7b2522a0f5ce5b64124f146fac.tar.gz
linux-4fa94e224b84be7b2522a0f5ce5b64124f146fac.tar.bz2
linux-4fa94e224b84be7b2522a0f5ce5b64124f146fac.zip
[media] vpif_capture: fix error return code in vpif_probe()
Fix to return -ENODEV in the subdevice register error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/davinci/vpif_capture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c
index a1b42b037678..caaf4fedadec 100644
--- a/drivers/media/platform/davinci/vpif_capture.c
+++ b/drivers/media/platform/davinci/vpif_capture.c
@@ -2159,6 +2159,7 @@ static __init int vpif_probe(struct platform_device *pdev)
if (!vpif_obj.sd[i]) {
vpif_err("Error registering v4l2 subdevice\n");
+ err = -ENODEV;
goto probe_subdev_out;
}
v4l2_info(&vpif_obj.v4l2_dev, "registered sub device %s\n",