]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: dw_mmc: Indicate that regulators may be absent
authorMark Brown <broonie@linaro.org>
Mon, 29 Jul 2013 20:55:27 +0000 (21:55 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 31 Jul 2013 08:56:40 +0000 (09:56 +0100)
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>
drivers/mmc/host/dw_mmc.c

index ee5f1676f14e61edc2d81acf945fed1a5bcb300d..542407363dd2012992831208cadfc8df592e3163 100644 (file)
@@ -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)