Commit 25980a97 authored by Thomas Gleixner's avatar Thomas Gleixner

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

The usage of this "mutex" is non obvious and probably a completions in
some places. Make it a semaphore.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: David S. Miller <davem@davemloft.net>
parent 13a12e58
...@@ -574,7 +574,7 @@ static int cosa_probe(int base, int irq, int dma) ...@@ -574,7 +574,7 @@ static int cosa_probe(int base, int irq, int dma)
/* Initialize the chardev data structures */ /* Initialize the chardev data structures */
mutex_init(&chan->rlock); mutex_init(&chan->rlock);
init_MUTEX(&chan->wsem); semaphore_init(&chan->wsem);
/* Register the network interface */ /* Register the network interface */
if (!(chan->netdev = alloc_hdlcdev(chan))) { if (!(chan->netdev = alloc_hdlcdev(chan))) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment