Skip to content
Snippets Groups Projects
Commit 495e64bd authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

hamradio: Mkiss: semaphore cleanup


Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>
Acked-by: default avatarDavid Miller <davem@davemloft.net>
LKML-Reference: <20100907125055.368389976@linutronix.de>
parent 89d9f10d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment