Commit 2fcd9dc3 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mauro Carvalho Chehab
Browse files

[media] davinci: vpif_capture: fix error return code in vpif_probe()



Fix to return -ENODEV in the subdevice register error handling.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent d10e8280
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,