riscv: sifive/fu540: spl: Rename soc_spl_init()
authorBin Meng <bin.meng@windriver.com>
Mon, 3 Aug 2020 06:09:03 +0000 (23:09 -0700)
committerAndes <uboot@andestech.com>
Fri, 14 Aug 2020 06:38:53 +0000 (14:38 +0800)
spl_soc_init() seems to be a better name, as all SPL functions
names start from the spl_ prefix.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Tested-by: Pragnesh Patel <pragnesh.patel@sifive.com>
arch/riscv/cpu/fu540/spl.c
arch/riscv/include/asm/arch-fu540/spl.h
board/sifive/fu540/spl.c

index a2034e9..45657b7 100644 (file)
@@ -7,7 +7,7 @@
 #include <dm.h>
 #include <log.h>
 
-int soc_spl_init(void)
+int spl_soc_init(void)
 {
        int ret;
        struct udevice *dev;
index 0c188be..4697279 100644 (file)
@@ -9,6 +9,6 @@
 #ifndef _SPL_SIFIVE_H
 #define _SPL_SIFIVE_H
 
-int soc_spl_init(void);
+int spl_soc_init(void);
 
 #endif /* _SPL_SIFIVE_H */
index 31d315d..135e118 100644 (file)
@@ -21,7 +21,7 @@ int spl_board_init_f(void)
 {
        int ret;
 
-       ret = soc_spl_init();
+       ret = spl_soc_init();
        if (ret) {
                debug("FU540 SPL init failed: %d\n", ret);
                return ret;