lib: time: update module enable MACRO
authorKever Yang <kever.yang@rock-chips.com>
Fri, 29 Mar 2019 14:17:33 +0000 (22:17 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 29 Mar 2019 14:53:18 +0000 (10:53 -0400)
commitf00c26284ec0aa3e9b01ebe4996aa8fc01526d03
tree138c33ea5b40f8ccdcd0568e93002e52576a7289
parent5ec072bb2b7aa9cb1696d172b605edac4ccc6e2a
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>
lib/time.c