projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af98bcd
)
mmc: core: Indicate that vmmcq may be absent
author
Mark Brown
<broonie@linaro.org>
Mon, 29 Jul 2013 20:58:01 +0000
(21:58 +0100)
committer
lintao
<lintao@rock-chips.com>
Fri, 7 Mar 2014 05:41:38 +0000
(13:41 +0800)
Use regulator_get_optional() to tell the core that requests for the vmmcq
regulator can fail in a real system.
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/core.c
b/drivers/mmc/core/core.c
index bec3b1a11675bb6db50d26d2aa6ebc56aa0b6577..c16f76385e1ad01dd252e615031a91dfe42a7839 100644
(file)
--- a/
drivers/mmc/core/core.c
+++ b/
drivers/mmc/core/core.c
@@
-1321,7
+1321,7
@@
int mmc_regulator_get_supply(struct mmc_host *mmc)
supply = devm_regulator_get(dev, "vmmc");
mmc->supply.vmmc = supply;
- mmc->supply.vqmmc = devm_regulator_get(dev, "vqmmc");
+ mmc->supply.vqmmc = devm_regulator_get
_optional
(dev, "vqmmc");
if (IS_ERR(supply))
return PTR_ERR(supply);