From: ddl Date: Mon, 7 Mar 2011 09:37:42 +0000 (+0800) Subject: camera: fix sensor driver have not enter power down after probe X-Git-Tag: firefly_0821_release~10686 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a07ababd55eaf1e775e766a276e22ce755d07c5b;p=firefly-linux-kernel-4.4.55.git camera: fix sensor driver have not enter power down after probe --- diff --git a/drivers/media/video/ov2655.c b/drivers/media/video/ov2655.c index 497a89eeccf8..f9d9eec5183e 100755 --- a/drivers/media/video/ov2655.c +++ b/drivers/media/video/ov2655.c @@ -2810,11 +2810,11 @@ static int sensor_video_probe(struct soc_camera_device *icd, icd->formats = sensor_colour_formats; icd->num_formats = ARRAY_SIZE(sensor_colour_formats); - + sensor_ioctrl(icd, Sensor_PowerDown, 1); return 0; sensor_video_probe_err: - + sensor_ioctrl(icd, Sensor_PowerDown, 1); return ret; } static long sensor_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) diff --git a/drivers/media/video/ov2659.c b/drivers/media/video/ov2659.c index 46af96d2dac1..8cf94bb72c6d 100755 --- a/drivers/media/video/ov2659.c +++ b/drivers/media/video/ov2659.c @@ -2628,10 +2628,11 @@ static int sensor_video_probe(struct soc_camera_device *icd, icd->formats = sensor_colour_formats; icd->num_formats = ARRAY_SIZE(sensor_colour_formats); - + sensor_ioctrl(icd, Sensor_PowerDown, 1); return 0; sensor_video_probe_err: + sensor_ioctrl(icd, Sensor_PowerDown, 1); return ret; } diff --git a/drivers/media/video/ov5642.c b/drivers/media/video/ov5642.c index b440dd012a60..61b7435b552f 100755 --- a/drivers/media/video/ov5642.c +++ b/drivers/media/video/ov5642.c @@ -5387,10 +5387,11 @@ static int sensor_video_probe(struct soc_camera_device *icd, icd->formats = sensor_colour_formats; icd->num_formats = ARRAY_SIZE(sensor_colour_formats); - + sensor_ioctrl(icd, Sensor_PowerDown, 1); return 0; sensor_video_probe_err: + sensor_ioctrl(icd, Sensor_PowerDown, 1); return ret; } static long sensor_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)