Commit 183ed327 authored by Thomas Gleixner's avatar Thomas Gleixner

irda: semaphore cleanup

The usage of this "mutex" is non obvious and probably a completion in
some places. Make it a semaphore.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: David S. Miller <davem@davemloft.net>
parent 25980a97
......@@ -908,7 +908,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);
semaphore_init(&dev->fsm.sem);
dev->drv = drv;
dev->netdev = ndev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment