|
@@ -624,13 +624,11 @@ static int cx8802_request_acquire(struct cx8802_driver *drv)
|
|
|
|
|
|
if (drv->advise_acquire)
|
|
|
{
|
|
|
- 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);
|
|
|
}
|
|
|
- mutex_unlock(&drv->core->lock);
|
|
|
|
|
|
mpeg_dbg(1,"%s() Post acquire GPIO=%x\n", __func__, cx_read(MO_GP0_IO));
|
|
|
}
|
|
@@ -643,14 +641,12 @@ 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)
|
|
|
{
|
|
|
drv->advise_release(drv);
|
|
|
core->active_type_id = CX88_BOARD_NONE;
|
|
|
mpeg_dbg(1,"%s() Post release GPIO=%x\n", __func__, cx_read(MO_GP0_IO));
|
|
|
}
|
|
|
- mutex_unlock(&drv->core->lock);
|
|
|
|
|
|
return 0;
|
|
|
}
|