diff mbox series

[5/6] powerpc: use CONFIG_IS_ENABLED() when checking for DM_SERIAL in include/asm/config.h

Message ID 20240606163326.386950-6-marek.mojik@nic.cz
State Accepted
Commit 6c6a4115c9eb6483313f77da777e0548230ebc55
Delegated to: Tom Rini
Headers show
Series Add Turris 1.x board | expand

Commit Message

Marek Mojík June 6, 2024, 4:33 p.m. UTC
Use the CONFIG_IS_ENABLED() macro when checking for DM_SERIAL so that
CFG_SYS_NS16550_CLK is not defined as get_serial_clock() in SPL if SPL
does not have DM_SERIAL enabled.

Signed-off-by: Marek Mojík <marek.mojik@nic.cz>
---
 arch/powerpc/include/asm/config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marek Behún July 11, 2024, 2:52 p.m. UTC | #1
Reviewed-by: Marek Behún <kabel@kernel.org>
diff mbox series

Patch

diff --git a/arch/powerpc/include/asm/config.h b/arch/powerpc/include/asm/config.h
index f0702cab14..f61f4e1ea6 100644
--- a/arch/powerpc/include/asm/config.h
+++ b/arch/powerpc/include/asm/config.h
@@ -39,7 +39,7 @@ 
 
 /* The FMAN driver uses the PHYLIB infrastructure */
 
-#if defined(CONFIG_DM_SERIAL) && !defined(CONFIG_CLK_MPC83XX)
+#if CONFIG_IS_ENABLED(DM_SERIAL) && !defined(CONFIG_CLK_MPC83XX)
 /*
  * TODO: Convert this to a clock driver exists that can give us the UART
  * clock here.