mmc: 8064: Disable runtime PM for SDCC on Simulator
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c
index 0800059..d6a343a 100644
--- a/drivers/mmc/host/msm_sdcc.c
+++ b/drivers/mmc/host/msm_sdcc.c
@@ -2287,7 +2287,10 @@
static int msmsdcc_disable(struct mmc_host *mmc, int lazy)
{
int rc;
+ struct msmsdcc_host *host = mmc_priv(mmc);
+ if (host->plat->disable_runtime_pm)
+ return -ENOTSUPP;
if (mmc->card && mmc->card->type == MMC_TYPE_SDIO)
return -ENOTSUPP;