aboutsummaryrefslogtreecommitdiff
path: root/board/AndesTech
diff options
context:
space:
mode:
authorLeo Yu-Chi Liang <ycliang@andestech.com>2021-11-01 17:00:43 +0800
committerLeo Yu-Chi Liang <ycliang@andestech.com>2021-11-08 15:35:55 +0800
commit5f888ab951518d56e5dccaa40ebe14b6f19b342a (patch)
tree5623f63d299e438195d8229e852a789f38cf39d1 /board/AndesTech
parent41635cca6ec40c21d4c602938342babfd8f7dbb7 (diff)
downloadu-boot-5f888ab951518d56e5dccaa40ebe14b6f19b342a.zip
u-boot-5f888ab951518d56e5dccaa40ebe14b6f19b342a.tar.gz
u-boot-5f888ab951518d56e5dccaa40ebe14b6f19b342a.tar.bz2
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: 2e8d2f88439d ("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>
Diffstat (limited to 'board/AndesTech')
-rw-r--r--board/AndesTech/ax25-ae350/ax25-ae350.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/AndesTech/ax25-ae350/ax25-ae350.c b/board/AndesTech/ax25-ae350/ax25-ae350.c
index 5fb32fd..d6a4291 100644
--- a/board/AndesTech/ax25-ae350/ax25-ae350.c
+++ b/board/AndesTech/ax25-ae350/ax25-ae350.c
@@ -57,9 +57,9 @@ ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info)
void *board_fdt_blob_setup(int *err)
{
*err = 0;
-#if CONFIG_IS_ENABLED(OF_BOARD)
+#if defined(CONFIG_OF_BOARD)
return (void *)(ulong)gd->arch.firmware_fdt_addr;
-#elif CONFIG_IS_ENABLED(OF_SEPARATE)
+#elif defined(CONFIG_OF_SEPARATE)
return (void *)CONFIG_SYS_FDT_BASE;
#else
*err = -EINVAL;