]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: env_common: make env_get_char_spec __weak
authorJeroen Hofstee <jeroen@myspectrum.nl>
Sat, 12 Jul 2014 13:22:13 +0000 (15:22 +0200)
committerTom Rini <trini@ti.com>
Fri, 18 Jul 2014 21:53:24 +0000 (17:53 -0400)
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
common/env_common.c

index cd7b4cd1dfb7c3a59bfad6f1ae6c5fe5bb07dd8f..3b979bcb9869996d14937aeba5c2856a7147ae3a 100644 (file)
@@ -27,12 +27,10 @@ struct hsearch_data env_htab = {
        .change_ok = env_flags_validate,
 };
 
-static uchar __env_get_char_spec(int index)
+__weak uchar env_get_char_spec(int index)
 {
        return *((uchar *)(gd->env_addr + index));
 }
-uchar env_get_char_spec(int)
-       __attribute__((weak, alias("__env_get_char_spec")));
 
 static uchar env_get_char_init(int index)
 {