aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index e08aa352bd50..3208890b10b3 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -260,6 +260,8 @@ void mmc_claim_host(struct mmc_host *host)
260 DECLARE_WAITQUEUE(wait, current); 260 DECLARE_WAITQUEUE(wait, current);
261 unsigned long flags; 261 unsigned long flags;
262 262
263 might_sleep();
264
263 add_wait_queue(&host->wq, &wait); 265 add_wait_queue(&host->wq, &wait);
264 spin_lock_irqsave(&host->lock, flags); 266 spin_lock_irqsave(&host->lock, flags);
265 while (1) { 267 while (1) {