From: Mark Brown Date: Mon, 29 Jul 2013 20:55:40 +0000 (+0100) Subject: mmc: pxamci: Indicate that regulators may be absent X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6ae8717a4897d776097c5c2578a907d3c59b1e9f;p=deliverable%2Flinux.git mmc: pxamci: 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 Acked-by: Chris Ball --- diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index 2c5a91bb8ec3..1956a3df7cf3 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c @@ -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;