mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
V4L/DVB: dvb: Convert "mutex" to semaphore
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
df1868e4ee
commit
a0a4714c40
@ -702,7 +702,7 @@ static void dvb_frontend_stop(struct dvb_frontend *fe)
|
||||
|
||||
kthread_stop(fepriv->thread);
|
||||
|
||||
init_MUTEX (&fepriv->sem);
|
||||
sema_init(&fepriv->sem, 1);
|
||||
fepriv->state = FESTATE_IDLE;
|
||||
|
||||
/* paranoia check in case a signal arrived */
|
||||
@ -2061,7 +2061,7 @@ int dvb_register_frontend(struct dvb_adapter* dvb,
|
||||
}
|
||||
fepriv = fe->frontend_priv;
|
||||
|
||||
init_MUTEX (&fepriv->sem);
|
||||
sema_init(&fepriv->sem, 1);
|
||||
init_waitqueue_head (&fepriv->wait_queue);
|
||||
init_waitqueue_head (&fepriv->events.wait_queue);
|
||||
mutex_init(&fepriv->events.mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user