blob: 825ac075e9cd245a7601a958b368742b0e5d684b [file] [log] [blame]
From a1f0965b7b7f8ca3199dc2992a67e25fdf63d36d Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Sun, 26 Jul 2009 00:46:14 +0200
Subject: [PATCH] hamradio: 6pack: semaphore cleanup
commit 9b7a9168176d7e114be8108156e44cb6967cc0c9 in tip.
The usage of this "mutex" is non obvious and probably a completion in
some places. Make it a semaphore.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David Miller <davem@davemloft.net>
diff --git a/drivers/net/hamradio/6pack.c b/drivers/net/hamradio/6pack.c
index 689b9bd..04cddd9 100644
--- a/drivers/net/hamradio/6pack.c
+++ b/drivers/net/hamradio/6pack.c
@@ -607,7 +607,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! */
--
1.7.1.1