Skip to content

Commit

Permalink
mmc: pxamci: Indicate that regulators 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 regulators
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 a55d6ff commit 6ae8717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6ae8717

Please sign in to comment.