Skip to content

Commit

Permalink
lib: time: update module enable MACRO
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
  • Loading branch information
keveryang authored and trini committed Mar 29, 2019
1 parent 5ec072b commit f00c262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f00c262

Please sign in to comment.