This not only looks a bit better it also prevents a
warning with W=1 (no previous prototype).

cc: ag...@denx.de
Signed-off-by: Jeroen Hofstee <jer...@myspectrum.nl>
---
 common/splash.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/common/splash.c b/common/splash.c
index 18885f1..144fb10 100644
--- a/common/splash.c
+++ b/common/splash.c
@@ -23,15 +23,11 @@
 #include <common.h>
 #include <splash.h>
 
-int __splash_screen_prepare(void)
+__weak int splash_screen_prepare(void)
 {
        return 0;
 }
 
-int splash_screen_prepare(void)
-       __attribute__ ((weak, alias("__splash_screen_prepare")));
-
-
 #ifdef CONFIG_SPLASH_SCREEN_ALIGN
 void splash_get_pos(int *x, int *y)
 {
-- 
1.8.3.2

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to