|
@@ -2333,6 +2333,8 @@ int mmc_suspend_host(struct mmc_host *host)
|
|
mmc_poweroff_notify(host);
|
|
mmc_poweroff_notify(host);
|
|
err = host->bus_ops->suspend(host);
|
|
err = host->bus_ops->suspend(host);
|
|
}
|
|
}
|
|
|
|
+ mmc_do_release_host(host);
|
|
|
|
+
|
|
if (err == -ENOSYS || !host->bus_ops->resume) {
|
|
if (err == -ENOSYS || !host->bus_ops->resume) {
|
|
/*
|
|
/*
|
|
* We simply "remove" the card in this case.
|
|
* We simply "remove" the card in this case.
|
|
@@ -2347,7 +2349,6 @@ int mmc_suspend_host(struct mmc_host *host)
|
|
host->pm_flags = 0;
|
|
host->pm_flags = 0;
|
|
err = 0;
|
|
err = 0;
|
|
}
|
|
}
|
|
- mmc_do_release_host(host);
|
|
|
|
} else {
|
|
} else {
|
|
err = -EBUSY;
|
|
err = -EBUSY;
|
|
}
|
|
}
|