Skip to content

Commit

Permalink
mmc: Convert "mutex" to semaphore
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: linux-mmc@vger.kernel.org
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Thomas Gleixner authored and Chris Ball committed Oct 23, 2010
1 parent 265cdc9 commit 632cf92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/card/queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock
sg_init_table(mq->sg, host->max_segs);
}

init_MUTEX(&mq->thread_sem);
sema_init(&mq->thread_sem, 1);

mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd");
if (IS_ERR(mq->thread)) {
Expand Down

0 comments on commit 632cf92

Please sign in to comment.