]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: pxamci: Indicate that regulators may be absent
authorMark Brown <broonie@linaro.org>
Mon, 29 Jul 2013 20:55:40 +0000 (21:55 +0100)
committerMark 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

index 2c5a91bb8ec3dbcf1433e114625e94b7d4c3cfe6..1956a3df7cf3f0e2f03dd36775f478b454272fb6 100644 (file)
@@ -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;