aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc')
-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 271efeac860b..950b97d7412a 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2333,6 +2333,8 @@ int mmc_suspend_host(struct mmc_host *host)
2333 mmc_poweroff_notify(host); 2333 mmc_poweroff_notify(host);
2334 err = host->bus_ops->suspend(host); 2334 err = host->bus_ops->suspend(host);
2335 } 2335 }
2336 mmc_do_release_host(host);
2337
2336 if (err == -ENOSYS || !host->bus_ops->resume) { 2338 if (err == -ENOSYS || !host->bus_ops->resume) {
2337 /* 2339 /*
2338 * We simply "remove" the card in this case. 2340 * We simply "remove" the card in this case.
@@ -2347,7 +2349,6 @@ int mmc_suspend_host(struct mmc_host *host)
2347 host->pm_flags = 0; 2349 host->pm_flags = 0;
2348 err = 0; 2350 err = 0;
2349 } 2351 }
2350 mmc_do_release_host(host);
2351 } else { 2352 } else {
2352 err = -EBUSY; 2353 err = -EBUSY;
2353 } 2354 }