summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sdhci-esdhc-imx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/host/sdhci-esdhc-imx.c')
-rw-r--r--drivers/mmc/host/sdhci-esdhc-imx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
index e1736869034d..511d2abef93b 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -858,6 +858,8 @@ static int esdhc_pltfm_init(struct sdhci_host *host, struct sdhci_pltfm_data *pd
|| boarddata->cd_type == ESDHC_CD_NONE
|| boarddata->cd_type == ESDHC_CD_GPIO)
host->mmc->caps &= ~MMC_CAP_NONREMOVABLE;
+ if (boarddata->runtime_pm)
+ host->mmc->caps |= MMC_CAP_POWER_OFF_CARD;
if (cpu_is_mx6()) {
host->mmc->caps |= MMC_CAP_1_8V_DDR;
host->tuning_min = SDHCI_TUNE_CTRL_MIN;
@@ -920,10 +922,6 @@ static int esdhc_pltfm_init(struct sdhci_host *host, struct sdhci_pltfm_data *pd
host->quirks &= ~SDHCI_QUIRK_BROKEN_CARD_DETECTION;
}
-#ifdef CONFIG_PM_RUNTIME
- host->mmc->caps |= MMC_CAP_POWER_OFF_CARD;
-#endif
-
if (host->clk_mgr_en)
clk_disable(pltfm_host->clk);
return 0;