Skip to content

Commit

Permalink
irda: 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 S. Miller" <davem@davemloft.net>
LKML-Reference: <20100907125055.651362456@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Oct 12, 2010
1 parent d198550 commit db7f859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/irda/sir_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit db7f859

Please sign in to comment.