summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2011-10-04 13:06:33 -0700
committerDoug Anderson <dianders@chromium.org>2011-10-05 10:53:21 -0700
commit77a74a08db0c3c777f131a6a535f0ee8697ef223 (patch)
treeff2590dee35d82a57d208592d1b23bc6fa5435a4 /arch
parentaa59f395007bcbda4b10c07e79637540378c36a7 (diff)
CHROMIUM: Fix gcc 4.6.0 warning if CONFIG_GENERIC_MMC not defined.
Warning was: board.c: In function 'board_init_r': board.c:514:8: error: variable 'bd' set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors The "fix" is to just use the "bd" shortcut in more places. BUG=None TEST=Compiled with waluigi patches (pull from http://gerrit.chromium.org/gerrit/8705) w/ no warnings. TEST=Compiled / booted legacy firmware for Kaen to u-boot prompt. Change-Id: I73d690650b5a09bc456f502ea4b3612b41c78f37 Signed-off-by: Doug Anderson <dianders@chromium.org> Reviewed-on: http://gerrit.chromium.org/gerrit/8750
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/lib/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index 18fd561726f..fb05b8d69ad 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -605,7 +605,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
#endif
/* IP Address */
- gd->bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
+ bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
stdio_init (); /* get the devices list going. */
@@ -667,7 +667,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
#if defined(CONFIG_NET_MULTI)
puts ("Net: ");
#endif
- eth_initialize(gd->bd);
+ eth_initialize(bd);
#if defined(CONFIG_RESET_PHY_R)
debug ("Reset Ethernet PHY\n");
reset_phy();