Skip to content
Snippets Groups Projects
Commit cc64b92c authored by Jeroen Hofstee's avatar Jeroen Hofstee Committed by Tom Rini
Browse files

common:splash: use __weak


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: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
parent fd536d81
No related branches found
No related tags found
No related merge requests found
...@@ -23,15 +23,11 @@ ...@@ -23,15 +23,11 @@
#include <common.h> #include <common.h>
#include <splash.h> #include <splash.h>
int __splash_screen_prepare(void) __weak int splash_screen_prepare(void)
{ {
return 0; return 0;
} }
int splash_screen_prepare(void)
__attribute__ ((weak, alias("__splash_screen_prepare")));
#ifdef CONFIG_SPLASH_SCREEN_ALIGN #ifdef CONFIG_SPLASH_SCREEN_ALIGN
void splash_get_pos(int *x, int *y) void splash_get_pos(int *x, int *y)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment