From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: [patch 06/30] hamradio: 6pack: semaphore cleanup Date: Tue, 07 Sep 2010 14:32:14 -0000 Message-ID: <20100907125055.269142443@linutronix.de> References: <20100907124636.880953480@linutronix.de> Cc: Andrew Morton , Ingo Molnar , Peter Zijlstra , Christoph Hellwig , David Miller , netdev@vger.kernel.org To: LKML Return-path: Received: from www.tglx.de ([62.245.132.106]:55191 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756784Ab0IGOcg (ORCPT ); Tue, 7 Sep 2010 10:32:36 -0400 Content-Disposition: inline; filename=drivers-net-hamradio-6pack-sema.patch Sender: netdev-owner@vger.kernel.org List-ID: Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: David Miller Cc: netdev@vger.kernel.org --- drivers/net/hamradio/6pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/drivers/net/hamradio/6pack.c =================================================================== --- linux-2.6.orig/drivers/net/hamradio/6pack.c +++ linux-2.6/drivers/net/hamradio/6pack.c @@ -608,7 +608,7 @@ static int sixpack_open(struct tty_struc 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! */