diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2007-09-24 14:43:43 -0500 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2007-09-24 14:43:43 -0500 |
commit | 8ffc774993725a0646aa8d1995d968c95aee9e3c (patch) | |
tree | ee69b8872cf8c295a48244280c82d98e191111ab /lib_blackfin/board.c | |
parent | d7fee32b7e61fe11c64e371cde79faa4768e8350 (diff) | |
parent | 66dcad3a9a53e0766d90e0084123bd8529522fb0 (diff) | |
download | u-boot-imx-8ffc774993725a0646aa8d1995d968c95aee9e3c.zip u-boot-imx-8ffc774993725a0646aa8d1995d968c95aee9e3c.tar.gz u-boot-imx-8ffc774993725a0646aa8d1995d968c95aee9e3c.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot
Diffstat (limited to 'lib_blackfin/board.c')
-rw-r--r-- | lib_blackfin/board.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c index 36a969e..7c9990f 100644 --- a/lib_blackfin/board.c +++ b/lib_blackfin/board.c @@ -42,6 +42,8 @@ int post_flag; #endif +DECLARE_GLOBAL_DATA_PTR; + #ifndef CFG_NO_FLASH extern flash_info_t flash_info[]; #endif @@ -126,8 +128,6 @@ static void display_flash_config(ulong size) static int init_baudrate(void) { - DECLARE_GLOBAL_DATA_PTR; - char tmp[64]; int i = getenv_r("baudrate", tmp, sizeof(tmp)); gd->bd->bi_baudrate = gd->baudrate = (i > 0) @@ -139,7 +139,6 @@ static int init_baudrate(void) #ifdef DEBUG static void display_global_data(void) { - DECLARE_GLOBAL_DATA_PTR; bd_t *bd; bd = gd->bd; printf("--flags:%x\n", gd->flags); @@ -256,7 +255,6 @@ void init_cplbtables(void) void board_init_f(ulong bootflag) { - DECLARE_GLOBAL_DATA_PTR; ulong addr; bd_t *bd; int i; @@ -325,7 +323,6 @@ static int init_func_i2c(void) void board_init_r(gd_t * id, ulong dest_addr) { - DECLARE_GLOBAL_DATA_PTR; ulong size; extern void malloc_bin_reloc(void); char *s, *e; |