aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r--drivers/mmc/host/sdhci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index a78bd4f3aecc..dd2c083c434d 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2966,7 +2966,7 @@ int sdhci_add_host(struct sdhci_host *host)
2966 mmc->caps |= MMC_CAP_NEEDS_POLL; 2966 mmc->caps |= MMC_CAP_NEEDS_POLL;
2967 2967
2968 /* If vqmmc regulator and no 1.8V signalling, then there's no UHS */ 2968 /* If vqmmc regulator and no 1.8V signalling, then there's no UHS */
2969 host->vqmmc = regulator_get(mmc_dev(mmc), "vqmmc"); 2969 host->vqmmc = regulator_get_optional(mmc_dev(mmc), "vqmmc");
2970 if (IS_ERR_OR_NULL(host->vqmmc)) { 2970 if (IS_ERR_OR_NULL(host->vqmmc)) {
2971 if (PTR_ERR(host->vqmmc) < 0) { 2971 if (PTR_ERR(host->vqmmc) < 0) {
2972 pr_info("%s: no vqmmc regulator found\n", 2972 pr_info("%s: no vqmmc regulator found\n",
@@ -3042,7 +3042,7 @@ int sdhci_add_host(struct sdhci_host *host)
3042 3042
3043 ocr_avail = 0; 3043 ocr_avail = 0;
3044 3044
3045 host->vmmc = regulator_get(mmc_dev(mmc), "vmmc"); 3045 host->vmmc = regulator_get_optional(mmc_dev(mmc), "vmmc");
3046 if (IS_ERR_OR_NULL(host->vmmc)) { 3046 if (IS_ERR_OR_NULL(host->vmmc)) {
3047 if (PTR_ERR(host->vmmc) < 0) { 3047 if (PTR_ERR(host->vmmc) < 0) {
3048 pr_info("%s: no vmmc regulator found\n", 3048 pr_info("%s: no vmmc regulator found\n",