]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: stm32mp: use correct weak function name spl_board_prepare_for_linux
authorPatrick Delaunay <patrick.delaunay@st.com>
Tue, 7 Jul 2020 12:21:53 +0000 (14:21 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Tue, 28 Jul 2020 16:14:15 +0000 (18:14 +0200)
Replace the function spl_board_prepare_for_boot_linux by the correct
name of the weak function spl_board_prepare_for_linux defined in spl.h.

This patch avoids warning with W=1 option:

u-boot/arch/arm/mach-stm32mp/spl.c:150:6:
warning: no previous prototype for ‘spl_board_prepare_for_boot_linux’
[-Wmissing-prototypes]

Fixes: dc7e5f190de5 ("arm: stm32mp: activate data cache on DDR in SPL")
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/mach-stm32mp/spl.c

index 39413e9a0e160ff9bcbc84abc21fe50fc1a13475..e84bdad7bfc06ab7329877638271df2f7e04c43a 100644 (file)
@@ -147,7 +147,7 @@ void spl_board_prepare_for_boot(void)
        dcache_disable();
 }
 
-void spl_board_prepare_for_boot_linux(void)
+void spl_board_prepare_for_linux(void)
 {
        dcache_disable();
 }