mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 09:44:18 +08:00
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>
This commit is contained in:
parent
4a4a506f81
commit
50948ee812
@ -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->tx_len = lp->exec_box->data[9]; /* Transmit list count */
|
||||||
lp->rx_len = lp->exec_box->data[11]; /* Receive 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->execution_cmd);
|
||||||
init_completion(&lp->xceiver_cmd);
|
init_completion(&lp->xceiver_cmd);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user