aboutsummaryrefslogtreecommitdiff
path: root/arch/m68k/lib
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-03-23 01:20:39 +0100
committerAngelo Dureghello <angelo@kernel-space.org>2023-04-15 21:36:07 +0200
commit35d48ea8c0543775bc9218e412553fd306b37de3 (patch)
tree8760ddcc27c1ac6704c9caf082bc93dabedb8178 /arch/m68k/lib
parent12c1e5782401abca1a8cff578d1911a9ca7d2e7d (diff)
downloadu-boot-35d48ea8c0543775bc9218e412553fd306b37de3.zip
u-boot-35d48ea8c0543775bc9218e412553fd306b37de3.tar.gz
u-boot-35d48ea8c0543775bc9218e412553fd306b37de3.tar.bz2
arch: m68k: Use existing CONFIG_MCFTMR instead of CFG_MCFTMR
There is an existing CONFIG_MCFTMR Kconfig symbol, use it and drop all other instances of CFG_MCFTMR. This duality is likely a result of bogus conversion to Kconfig. Fixes: 7ff7b46e6ce ("m68k: rename CONFIG_MCFTMR to CFG_MCFTMR") Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'arch/m68k/lib')
-rw-r--r--arch/m68k/lib/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/lib/time.c b/arch/m68k/lib/time.c
index ca8c039..500e4db 100644
--- a/arch/m68k/lib/time.c
+++ b/arch/m68k/lib/time.c
@@ -25,7 +25,7 @@ static volatile ulong timestamp = 0;
#define CFG_SYS_WATCHDOG_FREQ (CONFIG_SYS_HZ / 2)
#endif
-#if defined(CFG_MCFTMR)
+#if CONFIG_IS_ENABLED(MCFTMR)
#ifndef CFG_SYS_UDELAY_BASE
# error "uDelay base not defined!"
#endif
@@ -111,7 +111,7 @@ ulong get_timer(ulong base)
return (timestamp - base);
}
-#endif /* CFG_MCFTMR */
+#endif /* CONFIG_MCFTMR */
/*
* This function is derived from PowerPC code (read timebase as long long).