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:
a55d6ff
)
mmc: pxamci: Indicate that regulators may be absent
author
Mark Brown
<broonie@linaro.org>
Mon, 29 Jul 2013 20:55:40 +0000
(21:55 +0100)
committer
Mark Brown
<broonie@linaro.org>
Wed, 31 Jul 2013 08:56:41 +0000
(09:56 +0100)
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>
drivers/mmc/host/pxamci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/pxamci.c
b/drivers/mmc/host/pxamci.c
index 2c5a91bb8ec3dbcf1433e114625e94b7d4c3cfe6..1956a3df7cf3f0e2f03dd36775f478b454272fb6 100644
(file)
--- a/
drivers/mmc/host/pxamci.c
+++ b/
drivers/mmc/host/pxamci.c
@@
-83,7
+83,7
@@
struct pxamci_host {
static inline void pxamci_init_ocr(struct pxamci_host *host)
{
#ifdef CONFIG_REGULATOR
- host->vcc = regulator_get(mmc_dev(host->mmc), "vmmc");
+ host->vcc = regulator_get
_optional
(mmc_dev(host->mmc), "vmmc");
if (IS_ERR(host->vcc))
host->vcc = NULL;