]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: ae350: Use #if defined instead of CONFIG_IS_ENABLED
authorLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 1 Nov 2021 09:00:43 +0000 (17:00 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 8 Nov 2021 07:35:55 +0000 (15:35 +0800)
commit3e9fae3d6d54eaa2edac91b614603fa62678fd16
tree5623f63d299e438195d8229e852a789f38cf39d1
parentd50dd4fef83fb39aebdb024ed1086ce1b5697820
riscv: ae350: Use #if defined instead of CONFIG_IS_ENABLED

According to ./include/linux/kconfig.h,
CONFIG_IS_ENABLED(OF_BOARD) expands to 0
when CONFIG_SPL_BUILD is defined because
there is no CONFIG_SPL_OF_BOARD.

Use #if defined instead.

Fixes: 2831fc2c4d19 ("riscv: Remove OF_PRIOR_STAGE from RISC-V boards")
Signed-off-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
board/AndesTech/ax25-ae350/ax25-ae350.c