Use CONFIG_IS_ENABLED() instead of IS_ENABLED() when checking the
MMC_IO_VOLTAGE symbol so the Kconfig option is evaluated correctly for
xPL builds.

Signed-off-by: Jonas Karlman <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
---
v2: Collect r-b tag
---
 drivers/mmc/sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 08594e102669..71a6d8ea2f56 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -551,7 +551,7 @@ void sdhci_set_uhs_timing(struct sdhci_host *host)
 
 void sdhci_set_voltage(struct sdhci_host *host)
 {
-       if (IS_ENABLED(CONFIG_MMC_IO_VOLTAGE)) {
+       if (CONFIG_IS_ENABLED(MMC_IO_VOLTAGE)) {
                struct mmc *mmc = (struct mmc *)host->mmc;
                u32 ctrl;
 
-- 
2.54.0

Reply via email to