[PATCH v3 5/6] rockchip: spl: replace ifdef by IS_ENABLED for timer_init() call condition

Simon Glass sjg at chromium.org
Wed Jan 12 21:03:24 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.
> Replace the ifdef call condition by 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/spl.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list