diff mbox series

[02/11] imx9: trdc: correct DEBUG usage

Message ID 20241203-imx91-v1-2-48d2eaa4519e@nxp.com
State Accepted
Commit 7b20f70b0b1959950ff9d34cb1fcf785a1cf8672
Delegated to: Fabio Estevam
Headers show
Series imx: add i.MX91 and 11x11-EVK support | expand

Commit Message

Peng Fan Dec. 3, 2024, 3:42 p.m. UTC
From: Peng Fan <peng.fan@nxp.com>

Replace '#if DEBUG' with '#ifdef DEBUG', otherwise '#define DEBUG 1'
should be used and conflict with '#define DEBUG' in include/log.h

Fixes: 5fda95fb944 ("imx: imx9: Add TRDC driver for TRDC init")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm/mach-imx/imx9/trdc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/arm/mach-imx/imx9/trdc.c b/arch/arm/mach-imx/imx9/trdc.c
index ef0f8b52a4d11ac67369b64e62f67998118724ee..d7593ec2718777e0496853b7c2a75c05818d4d2c 100644
--- a/arch/arm/mach-imx/imx9/trdc.c
+++ b/arch/arm/mach-imx/imx9/trdc.c
@@ -484,7 +484,7 @@  void trdc_init(void)
 	}
 }
 
-#if DEBUG
+#ifdef DEBUG
 int trdc_mbc_control_dump(ulong trdc_reg, u32 mbc_x, u32 glbac_id)
 {
 	struct trdc_mbc *mbc_base = (struct trdc_mbc *)trdc_get_mbc_base(trdc_reg, mbc_x);