Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85762
b: refs/heads/master
c: baff6cd
h: refs/heads/master
v: v3
  • Loading branch information
Ricardo Cerqueira authored and Mauro Carvalho Chehab committed Feb 18, 2008
1 parent 0780ab1 commit d0f2b1b
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 40ae91a758df916d7a5640fb2de20537ef7849fd
refs/heads/master: baff6cdd3328e7b35c4e155d79105621812bceec
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/cx88/cx88-mpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,8 @@ static int cx8802_request_acquire(struct cx8802_driver *drv)

if (drv->advise_acquire)
{
core->active_ref++;
mutex_lock(&drv->core->lock);
core->active_ref++;
if (core->active_type_id == CX88_BOARD_NONE) {
core->active_type_id = drv->type_id;
drv->advise_acquire(drv);
Expand All @@ -634,14 +634,14 @@ static int cx8802_request_release(struct cx8802_driver *drv)
{
struct cx88_core *core = drv->core;

mutex_lock(&drv->core->lock);
if (drv->advise_release && --core->active_ref == 0)
{
mutex_lock(&drv->core->lock);
drv->advise_release(drv);
core->active_type_id = CX88_BOARD_NONE;
mutex_unlock(&drv->core->lock);
mpeg_dbg(1,"%s() Post release GPIO=%x\n", __FUNCTION__, cx_read(MO_GP0_IO));
}
mutex_unlock(&drv->core->lock);

return 0;
}
Expand Down

0 comments on commit d0f2b1b

Please sign in to comment.