[PATCH] x86: Correct usage of IS_ENABLED() macro in arch/x86/lib/spl.c
    Tom Rini 
    trini at konsulko.com
       
    Wed Feb 26 21:31:26 CET 2025
    
    
  
This file was using IS_ENABLED() to test for CONFIG flags but omitted
the CONFIG_ prefix and so did not work as expected.
Signed-off-by: Tom Rini <trini at konsulko.com>
---
Cc: Simon Glass <sjg at chromium.org>
Cc: Bin Meng <bmeng.cn at gmail.com>
---
 arch/x86/lib/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c
index 7a0335051012..61432f043004 100644
--- a/arch/x86/lib/spl.c
+++ b/arch/x86/lib/spl.c
@@ -82,7 +82,7 @@ static int x86_spl_init(void)
 	int ret;
 
 	log_debug("x86 spl starting\n");
-	if (IS_ENABLED(TPL))
+	if (IS_ENABLED(CONFIG_TPL))
 		ret = x86_cpu_reinit_f();
 	else
 		ret = x86_cpu_init_f();
-- 
2.43.0
    
    
More information about the U-Boot
mailing list