Skip to content

Commit

Permalink
mmc: core: Indicate that vmmcq may be absent
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Jul 31, 2013
1 parent de1dd9f commit bc35d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bc35d5e

Please sign in to comment.