summaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-07 14:32:14 +0000
committerThomas Gleixner <tglx@linutronix.de>2010-10-12 17:36:08 +0200
commit89d9f10d0b21268d3dba33db984ab03092861700 (patch)
treea6be71da203089e42f6e6ecc76d5f01caa2cf96a /drivers/net/hamradio
parent50948ee8124c2125d833e8889002aa12a948b4e9 (diff)
downloadop-kernel-dev-89d9f10d0b21268d3dba33db984ab03092861700.zip
op-kernel-dev-89d9f10d0b21268d3dba33db984ab03092861700.tar.gz
hamradio: 6pack: semaphore cleanup
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.269142443@linutronix.de>
Diffstat (limited to 'drivers/net/hamradio')
-rw-r--r--drivers/net/hamradio/6pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hamradio/6pack.c b/drivers/net/hamradio/6pack.c
index 4b52c76..3e5d0b6 100644
--- a/drivers/net/hamradio/6pack.c
+++ b/drivers/net/hamradio/6pack.c
@@ -608,7 +608,7 @@ static int sixpack_open(struct tty_struct *tty)
spin_lock_init(&sp->lock);
atomic_set(&sp->refcnt, 1);
- init_MUTEX_LOCKED(&sp->dead_sem);
+ sema_init(&sp->dead_sem, 0);
/* !!! length of the buffers. MTU is IP MTU, not PACLEN! */
OpenPOWER on IntegriCloud