diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-07 14:32:30 (GMT) |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 15:36:09 (GMT) |
commit | db7f859ec53c0bfaf3520afe2feafd18a27e48fb (patch) | |
tree | 53f41e128c02fb33f345b4955e5037932c37849a | |
parent | d1985508320ad40a68375bdbafa8a5d6c56d2114 (diff) | |
download | linux-db7f859ec53c0bfaf3520afe2feafd18a27e48fb.tar.xz |
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>
-rw-r--r-- | drivers/net/irda/sir_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/sir_dev.c b/drivers/net/irda/sir_dev.c index 1b051da..51d7444 100644 --- a/drivers/net/irda/sir_dev.c +++ b/drivers/net/irda/sir_dev.c @@ -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; |