summaryrefslogtreecommitdiffstats
path: root/board/trab/trab.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/trab/trab.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 'board/trab/trab.c')
-rw-r--r--board/trab/trab.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/board/trab/trab.c b/board/trab/trab.c
index e8dfd2ceb0..868a899ee9 100644
--- a/board/trab/trab.c
+++ b/board/trab/trab.c
@@ -28,7 +28,7 @@
#include <s3c2400.h>
#include <command.h>
-/* ------------------------------------------------------------------------- */
+DECLARE_GLOBAL_DATA_PTR;
#ifdef CFG_BRIGHTNESS
static void spi_init(void);
@@ -52,8 +52,6 @@ extern int do_mdm_init; /* defined in common/main.c */
#define KBD_MDELAY 5000
static void udelay_no_timer (int usec)
{
- DECLARE_GLOBAL_DATA_PTR;
-
int i;
int delay = usec * 3;
@@ -70,7 +68,6 @@ int board_init ()
#if defined(CONFIG_VFD)
extern int vfd_init_clocks(void);
#endif
- DECLARE_GLOBAL_DATA_PTR;
S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER();
S3C24X0_GPIO * const gpio = S3C24X0_GetBase_GPIO();
@@ -141,8 +138,6 @@ int board_init ()
int dram_init (void)
{
- DECLARE_GLOBAL_DATA_PTR;
-
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
return 0;
OpenPOWER on IntegriCloud