Skip to content

Commit

Permalink
net: Wan/cosa.c: Convert "mutex" to semaphore
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 S. Miller" <davem@davemloft.net>
LKML-Reference: <20100907125055.557578360@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Oct 12, 2010
1 parent 0bce198 commit d198550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wan/cosa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down

0 comments on commit d198550

Please sign in to comment.