board: sifive: Remove dead board_fdt_blob_setup
authorYao Zi <ziyao@disroot.org>
Fri, 7 Mar 2025 13:13:44 +0000 (13:13 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Fri, 25 Apr 2025 08:30:54 +0000 (16:30 +0800)
CONFIG_OF_BOARD isn't enabled on SiFive Unleashed and Unmatched, thus
board_fdt_blob_setup is actually dead code on these platforms. Let's
remove it.

Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
board/sifive/unleashed/unleashed.c
board/sifive/unmatched/unmatched.c

index c1c3746..f5da289 100644 (file)
@@ -114,17 +114,6 @@ int misc_init_r(void)
 
 #endif
 
-int board_fdt_blob_setup(void **fdtp)
-{
-       if (gd->arch.firmware_fdt_addr) {
-               *fdtp = (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr;
-
-               return 0;
-       }
-
-       return -EEXIST;
-}
-
 int board_init(void)
 {
        /* enable all cache ways */
index 23e03e1..a57ce1f 100644 (file)
 #include <dm.h>
 #include <asm/sections.h>
 
-int board_fdt_blob_setup(void **fdtp)
-{
-       if (gd->arch.firmware_fdt_addr) {
-               *fdtp = (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr;
-               return 0;
-       }
-
-       return -EEXIST;
-}
-
 int board_init(void)
 {
        /* enable all cache ways */