[PATCH v3 6/6] rockchip: tpl: use IS_ENABLED for timer_init() call condition
Simon Glass
sjg at chromium.org
Wed Jan 12 21:03:25 CET 2022
On Thu, 30 Dec 2021 at 09:48, Johan Jonker <jbx6244 at gmail.com> wrote:
>
> 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 at gmail.com>
> ---
> arch/arm/mach-rockchip/tpl.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list