From: Wei Yongjun Date: Mon, 2 Sep 2013 08:06:10 +0000 (-0300) Subject: [media] davinci: vpif_capture: fix error return code in vpif_probe() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2fcd9dc3114506c82744c581e0a4e7fcb5b28f08;p=openwrt%2Fstaging%2Fblogic.git [media] davinci: vpif_capture: fix error return code in vpif_probe() Fix to return -ENODEV in the subdevice register error handling. Signed-off-by: Wei Yongjun Acked-by: Lad, Prabhakar Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c index 1089834a4efe..52ac5e6c8625 100644 --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c @@ -2154,7 +2154,7 @@ static __init int vpif_probe(struct platform_device *pdev) if (!vpif_obj.sd[i]) { vpif_err("Error registering v4l2 subdevice\n"); - err = -ENOMEM; + err = -ENODEV; goto probe_subdev_out; } v4l2_info(&vpif_obj.v4l2_dev,