mmc: core: Indicate that vmmcq may be absent
authorMark Brown <broonie@linaro.org>
Mon, 29 Jul 2013 20:58:01 +0000 (21:58 +0100)
committerlintao <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

index bec3b1a11675bb6db50d26d2aa6ebc56aa0b6577..c16f76385e1ad01dd252e615031a91dfe42a7839 100644 (file)
@@ -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);