aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-07 10:32:30 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-10-12 11:36:09 -0400
commitdb7f859ec53c0bfaf3520afe2feafd18a27e48fb (patch)
tree53f41e128c02fb33f345b4955e5037932c37849a /drivers/net/irda
parentd1985508320ad40a68375bdbafa8a5d6c56d2114 (diff)
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>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r--drivers/net/irda/sir_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/sir_dev.c b/drivers/net/irda/sir_dev.c
index 1b051dab7b29..51d74447f8f8 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
909 dev->tx_skb = NULL; 909 dev->tx_skb = NULL;
910 910
911 spin_lock_init(&dev->tx_lock); 911 spin_lock_init(&dev->tx_lock);
912 init_MUTEX(&dev->fsm.sem); 912 sema_init(&dev->fsm.sem, 1);
913 913
914 dev->drv = drv; 914 dev->drv = drv;
915 dev->netdev = ndev; 915 dev->netdev = ndev;