* [PATCH v10 06/12] mmc: sdhci: remove check for CONFIG_REGULATOR
@ 2012-12-17 11:41 Kevin Liu
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Liu @ 2012-12-17 11:41 UTC (permalink / raw)
To: linux-mmc, cjb, arindam.nath, peppe.cavallaro, ulf.hansson,
andriy.shevchenko, prakity
Cc: zhangfei.gao, haojian.zhuang, cxie4, keyuan.liu, Kevin Liu
If CONFIG_REGULATOR is NOT defined, host->vmmc will be NULL and
regulator_is_supported_voltage will return 0.
so the check can be removed.
Signed-off-by: Kevin Liu <kliu5@marvell.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH v10 06/12] mmc: sdhci: remove check for CONFIG_REGULATOR
2012-12-17 11:21 [PATCH v10 00/12] mmc: sdhci: fixes and enhancements Kevin Liu
@ 2012-12-17 11:22 ` Kevin Liu
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Liu @ 2012-12-17 11:22 UTC (permalink / raw)
To: linux-mmc, cjb, arindam.nath, peppe.cavallaro, ulf.hansson,
andriy.shevchenko, prakity
Cc: zhangfei.gao, haojian.zhuang, cxie4, keyuan.liu, Kevin Liu
host->vmmc will be NULL if CONFIG_REGULATOR is not defined,
so the check can be removed.
Signed-off-by: Kevin Liu <kliu5@marvell.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-17 11:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-17 11:41 [PATCH v10 06/12] mmc: sdhci: remove check for CONFIG_REGULATOR Kevin Liu
-- strict thread matches above, loose matches on Subject: below --
2012-12-17 11:21 [PATCH v10 00/12] mmc: sdhci: fixes and enhancements Kevin Liu
2012-12-17 11:22 ` [PATCH v10 06/12] mmc: sdhci: remove check for CONFIG_REGULATOR Kevin Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.