]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: core: Indicate that vmmcq may be absent
authorMark Brown <broonie@linaro.org>
Mon, 29 Jul 2013 20:58:01 +0000 (21:58 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 31 Jul 2013 08:56:39 +0000 (09:56 +0100)
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

index 49a5bca418bdb7a6edf24669a9821851b9593aa9..5d088551196b6d9eb61f5443817bbbe9a20492c4 100644 (file)
@@ -1313,7 +1313,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);