projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec072b
)
lib: time: update module enable MACRO
author
Kever Yang
<kever.yang@rock-chips.com>
Fri, 29 Mar 2019 14:17:33 +0000
(22:17 +0800)
committer
Tom Rini
<trini@konsulko.com>
Fri, 29 Mar 2019 14:53:18 +0000
(10:53 -0400)
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>
lib/time.c
patch
|
blob
|
history
diff --git
a/lib/time.c
b/lib/time.c
index 3bf678a23278db79e523e5fe1cb9db933d19ecd3..9c55da6f1b3914adde3bf67107896a962bc29d44 100644
(file)
--- 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
-#if
def CONFIG_TIMER
+#if
CONFIG_IS_ENABLED(TIMER)
ulong notrace get_tbclk(void)
{
if (!gd->timer) {