mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
irda: 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 S. Miller" <davem@davemloft.net> LKML-Reference: <20100907125055.651362456@linutronix.de>
This commit is contained in:
parent
d198550832
commit
db7f859ec5
1 changed files with 1 additions and 1 deletions
|
@ -909,7 +909,7 @@ struct sir_dev * sirdev_get_instance(const struct sir_driver *drv, const char *n
|
|||
dev->tx_skb = NULL;
|
||||
|
||||
spin_lock_init(&dev->tx_lock);
|
||||
init_MUTEX(&dev->fsm.sem);
|
||||
sema_init(&dev->fsm.sem, 1);
|
||||
|
||||
dev->drv = drv;
|
||||
dev->netdev = ndev;
|
||||
|
|
Loading…
Reference in a new issue