From 9a1d9d448dc2684755f34a0c1b127f55bd910031 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner 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 Cc: Pierre Ossman Signed-off-by: Paul Gortmaker --- 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 d6ded24..1c7988d 100644 --- a/drivers/mmc/card/queue.c +++ b/drivers/mmc/card/queue.c @@ -194,7 +194,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.0.4