summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-29 21:55:27 +0100
committerMark Brown <broonie@linaro.org>2013-07-31 09:56:40 +0100
commita55d6ff0ed169fe2cf4bcdd81049c3c2041a7465 (patch)
treed38f0e2502fd8002c125bb456769973f6db55919 /drivers/mmc
parent462849aad50fced728d82a2ddba1b9d348e32f67 (diff)
downloadop-kernel-dev-a55d6ff0ed169fe2cf4bcdd81049c3c2041a7465.zip
op-kernel-dev-a55d6ff0ed169fe2cf4bcdd81049c3c2041a7465.tar.gz
mmc: dw_mmc: Indicate that regulators may be absent
Use regulator_get_optional() to tell the core that requests for regulators can fail in a real system. Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Chris Ball <cjb@laptop.org> Acked-by: Seungwon Jeon <tgih.jun@samsung.com> Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/dw_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index ee5f167..5424073 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -2231,7 +2231,7 @@ int dw_mci_probe(struct dw_mci *host)
}
}
- host->vmmc = devm_regulator_get(host->dev, "vmmc");
+ host->vmmc = devm_regulator_get_optional(host->dev, "vmmc");
if (IS_ERR(host->vmmc)) {
ret = PTR_ERR(host->vmmc);
if (ret == -EPROBE_DEFER)
OpenPOWER on IntegriCloud