mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
mmc: dw_mmc: Indicate that regulators may be absent
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>
This commit is contained in:
parent
462849aad5
commit
a55d6ff0ed
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue