Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1985508 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

net: Wan/cosa.c: Convert "mutex" to semaphore



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 avatar"David S. Miller" <davem@davemloft.net>
LKML-Reference: <20100907125055.557578360@linutronix.de>
parent 0bce198b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -575,7 +575,7 @@ static int cosa_probe(int base, int irq, int dma)

		/* Initialize the chardev data structures */
		mutex_init(&chan->rlock);
		init_MUTEX(&chan->wsem);
		sema_init(&chan->wsem, 1);

		/* Register the network interface */
		if (!(chan->netdev = alloc_hdlcdev(chan))) {