Skip to content

Commit

Permalink
mmc: dw_mmc: 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>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
  • Loading branch information
Mark Brown committed Jul 31, 2013
1 parent 462849a commit a55d6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,7 @@ int dw_mci_probe(struct dw_mci *host)
}
}

host->vmmc = devm_regulator_get(host->dev, "vmmc");
host->vmmc = devm_regulator_get_optional(host->dev, "vmmc");
if (IS_ERR(host->vmmc)) {
ret = PTR_ERR(host->vmmc);
if (ret == -EPROBE_DEFER)
Expand Down

0 comments on commit a55d6ff

Please sign in to comment.