Skip to content

Commit

Permalink
net: 3c527: semaphore cleanup
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 Miller <davem@davemloft.net>
LKML-Reference: <20100907125055.175750769@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Oct 12, 2010
1 parent 4a4a506 commit 50948ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/3c527.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 50948ee

Please sign in to comment.