]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00252381: mxc_v4l2_capture: ov5640: incorrect return value of ov5640_probe
authorSheng Nan <b38800@freescale.com>
Fri, 1 Mar 2013 08:43:29 +0000 (16:43 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:56 +0000 (08:35 +0200)
commit8eaefbacf290b9a15a48aef91b9c79b8f6b2ea58
tree20f8628c7d96d981e0e4801c3a75710077d841e0
parent312369744ccfd1216083b721daa5beda16a237eb
ENGR00252381: mxc_v4l2_capture: ov5640: incorrect return value of ov5640_probe

ov5640_probe always return -1 when error happens. Actually we should use the
correct return value. For example, -ENODEV when no ov5640 is found.

Signed-off-by: Sheng Nan <b38800@freescale.com>
drivers/media/video/mxc/capture/ov5640.c