host->vmmc will be NULL if CONFIG_REGULATOR is not defined, so the check can be removed. Signed-off-by: Kevin Liu <kliu5@xxxxxxxxxxx> --- drivers/mmc/host/sdhci.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 39c81bb..98b2a2a 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -2938,7 +2938,6 @@ int sdhci_add_host(struct sdhci_host *host) } } -#ifdef CONFIG_REGULATOR if (host->vmmc) { ret = regulator_is_supported_voltage(host->vmmc, 2700000, 3600000); @@ -2951,7 +2950,6 @@ int sdhci_add_host(struct sdhci_host *host) if ((ret <= 0) && (caps[0] & SDHCI_CAN_VDD_180)) caps[0] &= ~SDHCI_CAN_VDD_180; } -#endif /* CONFIG_REGULATOR */ /* * According to SD Host Controller spec v3.00, if the Host System -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html