mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
hamradio: Mkiss: semaphore cleanup
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Christoph Hellwig <[email protected]> Acked-by: David Miller <[email protected]> LKML-Reference: <[email protected]>
This commit is contained in:
parent
89d9f10d0b
commit
495e64bdde
1 changed files with 1 additions and 1 deletions
|
|
@ -747,7 +747,7 @@ static int mkiss_open(struct tty_struct *tty)
|
|||
|
||||
spin_lock_init(&ax->buflock);
|
||||
atomic_set(&ax->refcnt, 1);
|
||||
init_MUTEX_LOCKED(&ax->dead_sem);
|
||||
sema_init(&ax->dead_sem, 0);
|
||||
|
||||
ax->tty = tty;
|
||||
tty->disc_data = ax;
|
||||
|
|
|
|||
Loading…
Reference in a new issue