]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
board_r: ARM[64] do not set gd again
authorJeroen Hofstee <jeroen@myspectrum.nl>
Wed, 30 Jul 2014 19:54:49 +0000 (21:54 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 9 Sep 2014 11:50:45 +0000 (13:50 +0200)
For ARM / ARM64 the relocation routines already updated
gd to the new value. Don't set it again. This allows
compilation with clang as it cannot update gd directly.

cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
common/board_r.c

index f9647e13583f262a0fd78a389405027bc2108adb..551429c8431fe5a0ab0d322b0e68872a3e0d7963 100644 (file)
@@ -912,7 +912,7 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
        int i;
 #endif
 
-#ifndef CONFIG_X86
+#if !defined(CONFIG_X86) && !defined(CONFIG_ARM) && !defined(CONFIG_ARM64)
        gd = new_gd;
 #endif