Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226184
b: refs/heads/master
c: ea7c681
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Drake authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent 8319c08 commit 7b1275d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c429e7b62a54bf34c1995b45faeaeb84104f1705
refs/heads/master: ea7c681e899bda3fceb37815d63d201c3b4be920
5 changes: 2 additions & 3 deletions trunk/drivers/media/video/cafe_ccic.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,6 @@ static int cafe_cam_configure(struct cafe_camera *cam)
struct v4l2_mbus_framefmt mbus_fmt;
int ret;

if (cam->state != S_IDLE)
return -EINVAL;
v4l2_fill_mbus_format(&mbus_fmt, &cam->pix_format, cam->mbus_code);
ret = sensor_call(cam, core, init, 0);
if (ret == 0)
Expand Down Expand Up @@ -2196,12 +2194,13 @@ static int cafe_pci_resume(struct pci_dev *pdev)
return ret;
}
cafe_ctlr_init(cam);
cafe_ctlr_power_down(cam);

mutex_lock(&cam->s_mutex);
if (cam->users > 0) {
cafe_ctlr_power_up(cam);
__cafe_cam_reset(cam);
} else {
cafe_ctlr_power_down(cam);
}
mutex_unlock(&cam->s_mutex);

Expand Down

0 comments on commit 7b1275d

Please sign in to comment.