From: Kever Yang Date: Fri, 29 Mar 2019 14:17:33 +0000 (+0800) Subject: lib: time: update module enable MACRO X-Git-Tag: v2019.04~15^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f00c26284ec0aa3e9b01ebe4996aa8fc01526d03;p=oweals%2Fu-boot.git lib: time: update module enable MACRO We'd better use correct way to check if module has enabled. for we have 3 timer MACRO: - CONFIG_TIMER - CONFIG_SPL_TIMER - CONFIG_TPL_TIMER Signed-off-by: Kever Yang Reviewed-by: Philipp Tomsich --- diff --git a/lib/time.c b/lib/time.c index 3bf678a232..9c55da6f1b 100644 --- a/lib/time.c +++ b/lib/time.c @@ -56,7 +56,7 @@ ulong timer_get_boot_us(void) extern unsigned long __weak timer_read_counter(void); #endif -#ifdef CONFIG_TIMER +#if CONFIG_IS_ENABLED(TIMER) ulong notrace get_tbclk(void) { if (!gd->timer) {