blob: e795f594ce2eebaf57dfd95e4d1995bd7718ea21 [file] [log] [blame]
From 9674928f6825220b8501e82a9ea93e97a52ed75c Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Sun, 26 Jul 2009 00:04:05 +0200
Subject: [PATCH] mmc: Convert "mutex" to semaphore
commit 2df1b4c934fa64822f4c97be12702a3033757076 in tip.
The usage of this "mutex" is non obvious and probably a completions in
some places. Make it a semaphore.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Pierre Ossman <drzeus@drzeus.cx>
diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c
index c5a7a85..5bef6a9 100644
--- a/drivers/mmc/card/queue.c
+++ b/drivers/mmc/card/queue.c
@@ -195,7 +195,7 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock
sg_init_table(mq->sg, host->max_phys_segs);
}
- init_MUTEX(&mq->thread_sem);
+ semaphore_init(&mq->thread_sem);
mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd");
if (IS_ERR(mq->thread)) {
--
1.7.1.1