git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4af5084
)
imx9: trdc: correct DEBUG usage
author
Peng Fan
<peng.fan@nxp.com>
Tue, 3 Dec 2024 15:42:45 +0000
(23:42 +0800)
committer
Fabio Estevam
<festevam@gmail.com>
Sat, 7 Dec 2024 12:07:03 +0000
(09:07 -0300)
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
patch
|
blob
|
history
diff --git
a/arch/arm/mach-imx/imx9/trdc.c
b/arch/arm/mach-imx/imx9/trdc.c
index
ef0f8b5
..
d7593ec
100644
(file)
--- 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
+#if
def
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);