]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/tsec.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / drivers / tsec.c
index 4c5e1b5d3a1325deed2634806f968543079c4cc3..7ec565ca67bf9b3a8c226888c4122b485c72517e 100644 (file)
@@ -23,6 +23,8 @@
 #include "tsec.h"
 #include "miiphy.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define TX_BUF_CNT             2
 
 static uint rxIdx;     /* index of the current RX buffer */
@@ -1082,7 +1084,6 @@ static void relocate_cmds(void)
        struct phy_cmd **cmdlistptr;
        struct phy_cmd *cmd;
        int i,j,k;
-       DECLARE_GLOBAL_DATA_PTR;
 
        for(i=0; phy_info[i]; i++) {
                /* First thing's first: relocate the pointers to the