summaryrefslogtreecommitdiff
path: root/board/fads
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-04 15:55:45 +0000
committerWolfgang Denk <wd@denx.de>2011-11-07 22:15:22 +0100
commitbfdd1e186dcea0ca205a65f9bff32927ea208b5d (patch)
tree0374ba7e8814c017cd134518356f530a570cd305 /board/fads
parentf053432a721f743a879f40e3e3a70f9673c46a87 (diff)
downloadu-boot-imx-bfdd1e186dcea0ca205a65f9bff32927ea208b5d.zip
u-boot-imx-bfdd1e186dcea0ca205a65f9bff32927ea208b5d.tar.gz
u-boot-imx-bfdd1e186dcea0ca205a65f9bff32927ea208b5d.tar.bz2
board/fads/fads.c: Fix GCC 4.6 build warning
Fix: fads.c: In function 'initdram': fads.c:606:7: warning: variable 'base' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/fads')
-rw-r--r--board/fads/fads.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/fads/fads.c b/board/fads/fads.c
index 9f7faaf..317d279 100644
--- a/board/fads/fads.c
+++ b/board/fads/fads.c
@@ -603,15 +603,17 @@ static int initsdram(uint base, uint *noMbytes)
phys_size_t initdram (int board_type)
{
uint sdramsz = 0; /* size of sdram in Mbytes */
- uint base = 0; /* base of dram in bytes */
uint m = 0; /* size of dram in Mbytes */
#ifndef CONFIG_MPC885ADS
+ uint base = 0; /* base of dram in bytes */
uint k, s;
#endif
#ifdef CONFIG_FADS
if (!initsdram (0x00000000, &sdramsz)) {
+#ifndef CONFIG_MPC885ADS
base = sdramsz << 20;
+#endif
printf ("(%u MB SDRAM) ", sdramsz);
}
#endif