summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Mojík <marek.mojik@nic.cz>2024-06-06 18:33:25 +0200
committerTom Rini <trini@konsulko.com>2024-07-12 13:07:43 -0600
commit6c6a4115c9eb6483313f77da777e0548230ebc55 (patch)
treeb0bb36356bf470f2a827892563167447168a2429
parent748023c6bacc82f04f08f7251347debadefc34d5 (diff)
powerpc: use CONFIG_IS_ENABLED() when checking for DM_SERIAL in include/asm/config.h
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> Reviewed-by: Marek Behún <kabel@kernel.org>
-rw-r--r--arch/powerpc/include/asm/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/config.h b/arch/powerpc/include/asm/config.h
index f0702cab143..f61f4e1ea6e 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.