diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-14 07:12:35 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-10-23 09:11:12 -0400 |
commit | 632cf92a72fecda096d0f4608eaefb2c7392b744 (patch) | |
tree | 8f182d7dd03768cb1602e3e1a0f2014aa44e72d4 | |
parent | 265cdc900ce93c0cd2465d751fe75ff2e55e126e (diff) |
mmc: Convert "mutex" to semaphore
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mmc@vger.kernel.org
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/card/queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c index 7c3392e50722..91c99e76c8cc 100644 --- a/drivers/mmc/card/queue.c +++ b/drivers/mmc/card/queue.c | |||
@@ -208,7 +208,7 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock | |||
208 | sg_init_table(mq->sg, host->max_segs); | 208 | sg_init_table(mq->sg, host->max_segs); |
209 | } | 209 | } |
210 | 210 | ||
211 | init_MUTEX(&mq->thread_sem); | 211 | sema_init(&mq->thread_sem, 1); |
212 | 212 | ||
213 | mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd"); | 213 | mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd"); |
214 | if (IS_ERR(mq->thread)) { | 214 | if (IS_ERR(mq->thread)) { |