lib: time: update module enable MACRO
PATCH 1/1 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 <[email protected]>
---
lib/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/time.c +1 -1
@@ -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) {
Signature · 1 line
2.20.1
PATCH 1/1 lib: time: update module enable MACRO
Quoted 11 lines · Kever Yang
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_TIMERSigned-off-by Kever Yang <[email protected]>
Reviewed-by Philipp Tomsich <[email protected]>
Quoted 8 lines · Kever Yang
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_TIMERSigned-off-by Kever Yang <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190329/83167ad6/attachment.sig>