aboutsummaryrefslogtreecommitdiffstats
path: root/board/cu824/cu824.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 /board/cu824/cu824.c
parentf6dbbe986481cff01334c64cacb971a5f237a9a9 (diff)
downloadu-boot-midas-d87080b721e4f8dca977af7571c5338ae7bb8db7.tar.gz
u-boot-midas-d87080b721e4f8dca977af7571c5338ae7bb8db7.tar.bz2
u-boot-midas-d87080b721e4f8dca977af7571c5338ae7bb8db7.zip
GCC-4.x fixes: clean up global data pointer initialization for all boards.
Diffstat (limited to 'board/cu824/cu824.c')
-rw-r--r--board/cu824/cu824.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/cu824/cu824.c b/board/cu824/cu824.c
index 5844a5cf32..3edd27a3eb 100644
--- a/board/cu824/cu824.c
+++ b/board/cu824/cu824.c
@@ -2,7 +2,7 @@
* (C) Copyright 2001
* Rob Taylor, Flying Pig Systems. robt@flyingpig.com.
*
- * (C) Copyright 2001, 2002
+ * (C) Copyright 2001-2006
* Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
* See file CREDITS for list of people who contributed to this
@@ -29,12 +29,12 @@
#include <asm/processor.h>
#include <pci.h>
+DECLARE_GLOBAL_DATA_PTR;
+
#define BOARD_REV_REG 0xFE80002B
int checkboard (void)
{
- DECLARE_GLOBAL_DATA_PTR;
-
char revision = *(volatile char *)(BOARD_REV_REG);
char buf[32];