aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r--drivers/mmc/core/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 09eee6df0653..994454295184 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1514,7 +1514,7 @@ void mmc_stop_host(struct mmc_host *host)
1514 1514
1515 if (host->caps & MMC_CAP_DISABLE) 1515 if (host->caps & MMC_CAP_DISABLE)
1516 cancel_delayed_work(&host->disable); 1516 cancel_delayed_work(&host->disable);
1517 cancel_delayed_work(&host->detect); 1517 cancel_delayed_work_sync(&host->detect);
1518 mmc_flush_scheduled_work(); 1518 mmc_flush_scheduled_work();
1519 1519
1520 /* clear pm flags now and let card drivers set them as needed */ 1520 /* clear pm flags now and let card drivers set them as needed */
@@ -1720,6 +1720,7 @@ int mmc_pm_notify(struct notifier_block *notify_block,
1720 1720
1721 case PM_POST_SUSPEND: 1721 case PM_POST_SUSPEND:
1722 case PM_POST_HIBERNATION: 1722 case PM_POST_HIBERNATION:
1723 case PM_POST_RESTORE:
1723 1724
1724 spin_lock_irqsave(&host->lock, flags); 1725 spin_lock_irqsave(&host->lock, flags);
1725 host->rescan_disable = 0; 1726 host->rescan_disable = 0;