]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
common:splash: use __weak
authorJeroen Hofstee <jeroen@myspectrum.nl>
Thu, 26 Jun 2014 17:53:16 +0000 (19:53 +0200)
committerTom Rini <trini@ti.com>
Fri, 18 Jul 2014 21:53:23 +0000 (17:53 -0400)
This not only looks a bit better it also prevents a
warning with W=1 (no previous prototype).

cc: agust@denx.de
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
common/splash.c

index 18885f1bfe6e6878633cbe80affaef89c2b93f20..144fb10ddda36d1855d72ac8ac312e29346cc45b 100644 (file)
 #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)
 {