From: Marek Vasut <marek.vasut+renesas@mailbox.org>
Date: Sat, 8 Apr 2023 17:35:37 +0000 (+0200)
Subject: mmc: tmio: Use IS_ENABLED() to check for CONFIG_ option
X-Git-Tag: v2025.01-rc5-pxa1908~1041^2
X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-logo.png?a=commitdiff_plain;h=53614bc2dc4b87979041ddf97be43b81b98d4b7e;p=u-boot.git

mmc: tmio: Use IS_ENABLED() to check for CONFIG_ option

Use IS_ENABLED() instead of CONFIG_IS_ENABLED() to check for CONFIG_
option which is identical across all of U-Boot and xPL builds.

Fixes: 2769ddc99fd ("mmc: tmio: Replace ifdeffery with IS_ENABLED/CONFIG_IS_ENABLED macros")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---

diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c
index 8d7ee481d6..d1e2681599 100644
--- a/drivers/mmc/tmio-common.c
+++ b/drivers/mmc/tmio-common.c
@@ -378,7 +378,7 @@ static bool tmio_sd_addr_is_dmaable(struct mmc_data *data)
 	}
 
 #ifdef CONFIG_SPL_BUILD
-	if (IS_ENABLED(CONFIG_ARCH_UNIPHIER) && !CONFIG_IS_ENABLED(CONFIG_ARM64)) {
+	if (IS_ENABLED(CONFIG_ARCH_UNIPHIER) && !IS_ENABLED(CONFIG_ARM64)) {
 		/*
 		 * For UniPhier ARMv7 SoCs, the stack is allocated in locked
 		 * ways of L2, which is unreachable from the DMA engine.