From d6d2f8264cb2bb03dc104590e3aa8ffac040c0ef Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sun, 26 Jul 2009 00:45:13 +0200 Subject: [PATCH] net: 3c527: semaphore cleanup commit a7817b3f22ff50d7f1728cd4420ee6e9e2d390f5 in tip. The usage of this "mutex" is non obvious and probably a completion in some places. Make it a semaphore. Signed-off-by: Thomas Gleixner Cc: David Miller Signed-off-by: Paul Gortmaker --- drivers/net/3c527.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/3c527.c b/drivers/net/3c527.c index 5c07b14..8280311 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); -- 1.7.0.4