|
@@ -1559,7 +1559,7 @@ void mmc_stop_host(struct mmc_host *host)
|
|
|
|
|
|
if (host->caps & MMC_CAP_DISABLE)
|
|
if (host->caps & MMC_CAP_DISABLE)
|
|
cancel_delayed_work(&host->disable);
|
|
cancel_delayed_work(&host->disable);
|
|
- cancel_delayed_work(&host->detect);
|
|
|
|
|
|
+ cancel_delayed_work_sync(&host->detect);
|
|
mmc_flush_scheduled_work();
|
|
mmc_flush_scheduled_work();
|
|
|
|
|
|
/* clear pm flags now and let card drivers set them as needed */
|
|
/* clear pm flags now and let card drivers set them as needed */
|