summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-10-05 22:44:43 +0200
committerWolfgang Denk <wd@denx.de>2011-10-09 23:24:48 +0200
commit80c6abc306ad8baebcd02486167dbb557d90b2e3 (patch)
tree1aee193c6dc871c7a45dad04ec9e17dd20bf6f9e /arch
parent1a9845b4f00a2930b2c06dabd6cf9bee4ca1437c (diff)
arch/arm/lib/board.c: fix warning: variable ... set but not used
Fix: board.c:445:8: warning: variable 'bd' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/lib/board.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index 705d4d2f69..1fe3751fc3 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -442,14 +442,12 @@ static char *failed = "*** failed ***\n";
void board_init_r(gd_t *id, ulong dest_addr)
{
char *s;
- bd_t *bd;
ulong malloc_start;
#if !defined(CONFIG_SYS_NO_FLASH)
ulong flash_size;
#endif
gd = id;
- bd = gd->bd;
gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */
@@ -517,7 +515,7 @@ void board_init_r(gd_t *id, ulong dest_addr)
#ifdef CONFIG_GENERIC_MMC
puts("MMC: ");
- mmc_initialize(bd);
+ mmc_initialize(gd->bd);
#endif
#ifdef CONFIG_HAS_DATAFLASH