diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 21:32:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 21:32:12 -0500 |
commit | 9e9bc9736756f25d6c47b4eba0ebf25b20a6f153 (patch) | |
tree | 647240f479c5f23910c3e6194d1c35b6ba54d75e /drivers/media/video/cafe_ccic.c | |
parent | 3c0cb7c31c206aaedb967e44b98442bbeb17a6c4 (diff) | |
parent | e3c92215198cb6aa00ad38db2780faa6b72e0a3f (diff) |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (255 commits)
[media] radio-aimslab.c: Fix gcc 4.5+ bug
[media] cx25821: Fix compilation breakage due to BKL dependency
[media] v4l2-compat-ioctl32: fix compile warning
[media] zoran: fix compiler warning
[media] tda18218: fix compile warning
[media] ngene: fix compile warning
[media] DVB: IR support for TechnoTrend CT-3650
[media] cx23885, cimax2.c: Fix case of two CAM insertion irq
[media] ir-nec-decoder: fix repeat key issue
[media] staging: se401 depends on USB
[media] staging: usbvideo/vicam depends on USB
[media] soc_camera: Add the ability to bind regulators to soc_camedra devices
[media] V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV2640 sensor
[media] v4l: soc-camera: switch to .unlocked_ioctl
[media] v4l: ov772x: simplify pointer dereference
[media] ov9640: fix OmniVision OV9640 sensor driver's priv data retrieving
[media] ov9640: use macro to request OmniVision OV9640 sensor private data
[media] ivtv-i2c: Fix two warnings
[media] staging/lirc: Update lirc TODO files
[media] cx88: Remove the obsolete i2c_adapter.id field
...
Diffstat (limited to 'drivers/media/video/cafe_ccic.c')
-rw-r--r-- | drivers/media/video/cafe_ccic.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/cafe_ccic.c b/drivers/media/video/cafe_ccic.c index 0dfff50891e4..789087cd6a9c 100644 --- a/drivers/media/video/cafe_ccic.c +++ b/drivers/media/video/cafe_ccic.c | |||
@@ -859,8 +859,6 @@ static int cafe_cam_configure(struct cafe_camera *cam) | |||
859 | struct v4l2_mbus_framefmt mbus_fmt; | 859 | struct v4l2_mbus_framefmt mbus_fmt; |
860 | int ret; | 860 | int ret; |
861 | 861 | ||
862 | if (cam->state != S_IDLE) | ||
863 | return -EINVAL; | ||
864 | v4l2_fill_mbus_format(&mbus_fmt, &cam->pix_format, cam->mbus_code); | 862 | v4l2_fill_mbus_format(&mbus_fmt, &cam->pix_format, cam->mbus_code); |
865 | ret = sensor_call(cam, core, init, 0); | 863 | ret = sensor_call(cam, core, init, 0); |
866 | if (ret == 0) | 864 | if (ret == 0) |
@@ -2196,12 +2194,13 @@ static int cafe_pci_resume(struct pci_dev *pdev) | |||
2196 | return ret; | 2194 | return ret; |
2197 | } | 2195 | } |
2198 | cafe_ctlr_init(cam); | 2196 | cafe_ctlr_init(cam); |
2199 | cafe_ctlr_power_down(cam); | ||
2200 | 2197 | ||
2201 | mutex_lock(&cam->s_mutex); | 2198 | mutex_lock(&cam->s_mutex); |
2202 | if (cam->users > 0) { | 2199 | if (cam->users > 0) { |
2203 | cafe_ctlr_power_up(cam); | 2200 | cafe_ctlr_power_up(cam); |
2204 | __cafe_cam_reset(cam); | 2201 | __cafe_cam_reset(cam); |
2202 | } else { | ||
2203 | cafe_ctlr_power_down(cam); | ||
2205 | } | 2204 | } |
2206 | mutex_unlock(&cam->s_mutex); | 2205 | mutex_unlock(&cam->s_mutex); |
2207 | 2206 | ||