Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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 <yongjun_wei@trendmicro.com.cn>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

authored by

Wei Yongjun and committed by
Mauro Carvalho Chehab
2fcd9dc3 d10e8280

+1 -1
+1 -1
drivers/media/platform/davinci/vpif_capture.c
··· 2154 2154 2155 2155 if (!vpif_obj.sd[i]) { 2156 2156 vpif_err("Error registering v4l2 subdevice\n"); 2157 - err = -ENOMEM; 2157 + err = -ENODEV; 2158 2158 goto probe_subdev_out; 2159 2159 } 2160 2160 v4l2_info(&vpif_obj.v4l2_dev,