Merge "mmc: core: power off host if SD card resume fails"

This commit is contained in:
Linux Build Service Account 2017-09-07 22:42:20 -07:00 committed by Gerrit - the friendly Code Review server
commit f906a06b89

View file

@ -1286,6 +1286,7 @@ static int _mmc_sd_resume(struct mmc_host *host)
if (err) {
pr_err("%s: %s: mmc_sd_init_card_failed (%d)\n",
mmc_hostname(host), __func__, err);
mmc_power_off(host);
goto out;
}
mmc_card_clr_suspended(host->card);