]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/MAI/AmigaOneG3SE/cmd_boota.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / board / MAI / AmigaOneG3SE / cmd_boota.c
index 3e2835aaeba5a12554905bdd6c6c73ffee50d03a..143bba2f154099f17837ee4b9875ef1eea4b491e 100644 (file)
@@ -3,6 +3,7 @@
 #include "../disk/part_amiga.h"
 #include <asm/cache.h>
 
+DECLARE_GLOBAL_DATA_PTR;
 
 #undef BOOTA_DEBUG
 
@@ -108,8 +109,6 @@ int do_boota (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
        s = getenv ("autostart");
        if (s && strcmp (s, "yes") == 0) {
-               DECLARE_GLOBAL_DATA_PTR;
-
                void (*boot) (bd_t *, char *, block_dev_desc_t *);
                char *args;