summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKishon Vijay Abraham I2017-07-26 01:01:58 -0500
committerKishon Vijay Abraham I2017-07-26 01:01:58 -0500
commitdbc7c1971bcf0a2d1c1a14e73bdc155350813219 (patch)
treea98e60f9bd67231f7bd95ddc1afed9a991df2a87
parent272af7b6cb977cab4a1832f50c01299403e9567f (diff)
downloadlinux-phy-mmc_dt_fix.tar.gz
linux-phy-mmc_dt_fix.tar.xz
linux-phy-mmc_dt_fix.zip
-rw-r--r--drivers/mmc/host/omap_hsmmc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 7c12f3715676..efafca18815e 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -258,6 +258,12 @@ static int omap_hsmmc_enable_supply(struct mmc_host *mmc)
258 258
259 /* Enable interface voltage rail, if needed */ 259 /* Enable interface voltage rail, if needed */
260 if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) { 260 if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) {
261 ret = regulator_set_voltage(mmc->supply.vqmmc, VDD_3V0, VDD_3V0);
262 if (ret) {
263 dev_err(mmc_dev(mmc), "vmmc_aux set voltage failed\n");
264 goto err_vqmmc;
265 }
266
261 ret = regulator_enable(mmc->supply.vqmmc); 267 ret = regulator_enable(mmc->supply.vqmmc);
262 if (ret) { 268 if (ret) {
263 dev_err(mmc_dev(mmc), "vmmc_aux reg enable failed\n"); 269 dev_err(mmc_dev(mmc), "vmmc_aux reg enable failed\n");