common: board: fix build condition of noncached memory initcall
authorWeijie Gao <weijie.gao@mediatek.com>
Tue, 29 Apr 2025 02:04:24 +0000 (10:04 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 30 Apr 2025 13:49:57 +0000 (07:49 -0600)
commita6da395b5d68ad0e644e0a70665274dc60ec2056
treeccc9eb7bf3ded6760d1c9638b92bb47cc83d0254
parentf59cb6a6970bd5603e225acabf741b930fd43156
common: board: fix build condition of noncached memory initcall

CONFIG_SYS_NONCACHED_MEMORY is defined as hex, not bool. It should be
replaced with CONFIG_SYS_HAS_NONCACHED_MEMORY when switched from #ifdef to
CONFIG_IS_ENABLED().

Fixes: 6c171f7a184 (common: board: make initcalls static)
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Tested-by: Marcel Ziswiler <marcel.ziswiler@codethink.co.uk> # rock5b
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
common/board_r.c