Hi Johan,

On Sat, 25 Dec 2021 at 05:11, Johan Jonker <[email protected]> wrote:
>
> The Rockchip SoCs rk3066/rk3188 have no CONFIG_ROCKCHIP_STIMER_BASE
> defined. Currently only rk3188 has an exception. Make this more
> generic and call the function rockchip_stimer_init() only when
> CONFIG_ROCKCHIP_STIMER_BASE is available.
>
> Signed-off-by: Johan Jonker <[email protected]>
> ---
>  arch/arm/mach-rockchip/spl.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Can you use if(IS_ENABLED(...)) instead of #if ?

Regards,
Simon

Reply via email to