Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250235
b: refs/heads/master
c: 8d11593
h: refs/heads/master
i:
  250233: a307009
  250231: 023ca38
v: v3
  • Loading branch information
Jonathan Nieder authored and Mauro Carvalho Chehab committed May 20, 2011
1 parent 721801a commit 1d272a0
Show file tree
Hide file tree
Showing 3 changed files with 5 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: f4bd4be8d113534a28e0c9a86cddbabd47b06159
refs/heads/master: 8d115931622eb19a15f2633cb35dd2c4a66db255
5 changes: 3 additions & 2 deletions trunk/drivers/media/video/cx88/cx88-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ static int video_open(struct file *file)
call_all(core, tuner, s_radio);
}

atomic_inc(&core->users);
core->users++;
mutex_unlock(&core->lock);

return 0;
Expand Down Expand Up @@ -922,7 +922,8 @@ static int video_release(struct file *file)
file->private_data = NULL;
kfree(fh);

if(atomic_dec_and_test(&dev->core->users))
dev->core->users--;
if (!dev->core->users)
call_all(dev->core, core, s_power, 0);
mutex_unlock(&dev->core->lock);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/cx88/cx88.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ struct cx88_core {
struct mutex lock;
/* various v4l controls */
u32 freq;
atomic_t users;
int users;
int mpeg_users;

/* cx88-video needs to access cx8802 for hybrid tuner pll access. */
Expand Down

0 comments on commit 1d272a0

Please sign in to comment.