@@ -1445,18 +1445,6 @@ static int mmc_resume(struct mmc_host *host)
return err;
}
-static int mmc_power_restore(struct mmc_host *host)
-{
- int ret;
-
- host->card->state &= ~(MMC_STATE_HIGHSPEED | MMC_STATE_HIGHSPEED_200);
- mmc_claim_host(host);
- ret = mmc_init_card(host, host->ocr, host->card);
- mmc_release_host(host);
-
- return ret;
-}
-
static int mmc_sleep(struct mmc_host *host)
{
struct mmc_card *card = host->card;
@@ -1494,7 +1482,6 @@ static const struct mmc_bus_ops mmc_ops = {
.detect = mmc_detect,
.suspend = NULL,
.resume = NULL,
- .power_restore = mmc_power_restore,
.alive = mmc_alive,
};
@@ -1505,7 +1492,6 @@ static const struct mmc_bus_ops mmc_ops_unsafe = {
.detect = mmc_detect,
.suspend = mmc_suspend,
.resume = mmc_resume,
- .power_restore = mmc_power_restore,
.alive = mmc_alive,
};
@@ -1095,24 +1095,11 @@ static int mmc_sd_resume(struct mmc_host *host)
return err;
}
-static int mmc_sd_power_restore(struct mmc_host *host)
-{
- int ret;
-
- host->card->state &= ~MMC_STATE_HIGHSPEED;
- mmc_claim_host(host);
- ret = mmc_sd_init_card(host, host->ocr, host->card);
- mmc_release_host(host);
-
- return ret;
-}
-
static const struct mmc_bus_ops mmc_sd_ops = {
.remove = mmc_sd_remove,
.detect = mmc_sd_detect,
.suspend = NULL,
.resume = NULL,
- .power_restore = mmc_sd_power_restore,
.alive = mmc_sd_alive,
};
@@ -1121,7 +1108,6 @@ static const struct mmc_bus_ops mmc_sd_ops_unsafe = {
.detect = mmc_sd_detect,
.suspend = mmc_sd_suspend,
.resume = mmc_sd_resume,
- .power_restore = mmc_sd_power_restore,
.alive = mmc_sd_alive,
};