Commit f00c26284ec0aa3e9b01ebe4996aa8fc01526d03

Authored by Kever Yang
Committed by Tom Rini
1 parent 5ec072bb2b

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 <kever.yang@rock-chips.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -56,7 +56,7 @@
56 56 extern unsigned long __weak timer_read_counter(void);
57 57 #endif
58 58  
59   -#ifdef CONFIG_TIMER
  59 +#if CONFIG_IS_ENABLED(TIMER)
60 60 ulong notrace get_tbclk(void)
61 61 {
62 62 if (!gd->timer) {