diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-07 14:32:25 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 17:36:09 +0200 |
commit | d1985508320ad40a68375bdbafa8a5d6c56d2114 (patch) | |
tree | 5f19a8cd326d7cea49b2a3aa80d2440d299f2ff4 /drivers/net/wan | |
parent | 0bce198b7688911e072bd65032ab9278b577ee93 (diff) | |
download | kernel_samsung_aries-d1985508320ad40a68375bdbafa8a5d6c56d2114.zip kernel_samsung_aries-d1985508320ad40a68375bdbafa8a5d6c56d2114.tar.gz kernel_samsung_aries-d1985508320ad40a68375bdbafa8a5d6c56d2114.tar.bz2 |
net: Wan/cosa.c: Convert "mutex" to semaphore
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>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/cosa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index 04c6cd4..10bafd5 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c @@ -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))) { |