summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-07 16:32:10 +0200
committerThomas Gleixner <tglx@linutronix.de>2010-10-12 17:36:08 +0200
commit50948ee8124c2125d833e8889002aa12a948b4e9 (patch)
treeab735d045336c0273b3b0fe950c2e4ac7afa6df8
parentinput: Serio/hp_sdc: semaphore cleanup (diff)
downloadlinux-50948ee8124c2125d833e8889002aa12a948b4e9.tar.xz
linux-50948ee8124c2125d833e8889002aa12a948b4e9.zip
net: 3c527: semaphore cleanup
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 Miller <davem@davemloft.net> LKML-Reference: <20100907125055.175750769@linutronix.de>
-rw-r--r--drivers/net/3c527.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/3c527.c b/drivers/net/3c527.c
index 70705d1306b9..eca55c52bdfd 100644
--- a/drivers/net/3c527.c
+++ b/drivers/net/3c527.c
@@ -522,7 +522,7 @@ static int __init mc32_probe1(struct net_device *dev, int slot)
lp->tx_len = lp->exec_box->data[9]; /* Transmit list count */
lp->rx_len = lp->exec_box->data[11]; /* Receive list count */
- init_MUTEX_LOCKED(&lp->cmd_mutex);
+ sema_init(&lp->cmd_mutex, 0);
init_completion(&lp->execution_cmd);
init_completion(&lp->xceiver_cmd);