aboutsummaryrefslogtreecommitdiff
path: root/drivers/timer
diff options
context:
space:
mode:
authorJohan Jonker2022-04-09 18:55:05 +0200
committerKever Yang2022-04-18 11:25:13 +0800
commit30a7b824aa5a2774bf320c20f1d460aea2a56db0 (patch)
tree7d53ce3b3fce4ea7042f1cf11613b481d7396b84 /drivers/timer
parentd23f55d21749fc1fc1147edad3b1782d479b9946 (diff)
rockchip: tpl: use IS_ENABLED for timer_init() call condition
Not all Rockchip SoC models use the ARM arch timer. Call the function timer_init() only when CONFIG_SYS_ARCH_TIMER is available. Use the call condition IS_ENABLED to increase build coverage and make the code easier to read. Signed-off-by: Johan Jonker <jbx6244@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'drivers/timer')
0 files changed, 0 insertions, 0 deletions