Skip to content

Commit

Permalink
hamradio: Mkiss: semaphore cleanup
Browse files Browse the repository at this point in the history
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>
Acked-by: David Miller <davem@davemloft.net>
LKML-Reference: <20100907125055.368389976@linutronix.de>
  • Loading branch information
KAGA-KOKO committed Oct 12, 2010
1 parent 89d9f10 commit 495e64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/hamradio/mkiss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 495e64b

Please sign in to comment.