summaryrefslogtreecommitdiffstats
path: root/drivers/tsec.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-03-31 18:32:53 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-03-31 18:32:53 +0200
commitd87080b721e4f8dca977af7571c5338ae7bb8db7 (patch)
tree514fc21eec39a2dd57f7aea516844a4400f8f140 /drivers/tsec.c
parentf6dbbe986481cff01334c64cacb971a5f237a9a9 (diff)
downloadblackbird-obmc-uboot-d87080b721e4f8dca977af7571c5338ae7bb8db7.tar.gz
blackbird-obmc-uboot-d87080b721e4f8dca977af7571c5338ae7bb8db7.zip
GCC-4.x fixes: clean up global data pointer initialization for all boards.
Diffstat (limited to 'drivers/tsec.c')
-rw-r--r--drivers/tsec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tsec.c b/drivers/tsec.c
index 4c5e1b5d3a..7ec565ca67 100644
--- a/drivers/tsec.c
+++ b/drivers/tsec.c
@@ -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
OpenPOWER on IntegriCloud