diff options
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index df6ce4a06cf3..b5899e33b687 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c | |||
@@ -815,6 +815,7 @@ void mmc_stop_host(struct mmc_host *host) | |||
815 | spin_unlock_irqrestore(&host->lock, flags); | 815 | spin_unlock_irqrestore(&host->lock, flags); |
816 | #endif | 816 | #endif |
817 | 817 | ||
818 | cancel_delayed_work(&host->detect); | ||
818 | mmc_flush_scheduled_work(); | 819 | mmc_flush_scheduled_work(); |
819 | 820 | ||
820 | mmc_bus_get(host); | 821 | mmc_bus_get(host); |
@@ -842,6 +843,7 @@ void mmc_stop_host(struct mmc_host *host) | |||
842 | */ | 843 | */ |
843 | int mmc_suspend_host(struct mmc_host *host, pm_message_t state) | 844 | int mmc_suspend_host(struct mmc_host *host, pm_message_t state) |
844 | { | 845 | { |
846 | cancel_delayed_work(&host->detect); | ||
845 | mmc_flush_scheduled_work(); | 847 | mmc_flush_scheduled_work(); |
846 | 848 | ||
847 | mmc_bus_get(host); | 849 | mmc_bus_get(host); |