summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mayer <markus.mayer@linaro.org>2014-06-05 15:00:04 -0700
committerAlex Elder <elder@linaro.org>2014-06-11 17:06:31 -0500
commit26a1a8a22ead6a8ac4404f7e01ef6ca82d6a07c6 (patch)
tree6bbe3fd28be3ee7e83b3f454adf3c5b57cbc5163
parent6d3d46333941fd0a55db2b522124f4a356c3fd6e (diff)
mmc: sdhci: Use existing mmc pointer calling mmc_regulator_set_ocr()tracking-capri-support-llct-20140612.0
Use the existing "mmc" pointer rather than host->mmc as first argument to mmc_regulator_set_ocr(). Signed-off-by: Markus Mayer <markus.mayer@linaro.org> Reviewed-by: Matt Porter <mporter@linaro.org>
-rw-r--r--drivers/mmc/host/sdhci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 7ba0900ec233..2444c94e24ad 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1440,7 +1440,7 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios)
spin_unlock_irqrestore(&host->lock, flags);
if (!IS_ERR(mmc->supply.vmmc) &&
ios->power_mode == MMC_POWER_OFF)
- mmc_regulator_set_ocr(host->mmc, mmc->supply.vmmc, 0);
+ mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
return;
}
@@ -1467,7 +1467,7 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios)
if (!IS_ERR(mmc->supply.vmmc) && vdd_bit != -1) {
spin_unlock_irqrestore(&host->lock, flags);
- mmc_regulator_set_ocr(host->mmc, mmc->supply.vmmc, vdd_bit);
+ mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd_bit);
spin_lock_irqsave(&host->lock, flags);
}