[U-Boot] [PATCH v2] arm, logbuffer: make it compileclean
Heiko Schocher
hs at denx.de
Wed Oct 12 13:13:38 CEST 2011
Signed-off-by: Heiko Schocher <hs at denx.de>
Cc: Albert ARIBAUD <albert.u.boot at aribaud.net>
---
- changes for v2:
- rebased against current TOT
checkpatch:
total: 0 errors, 0 warnings, 15 lines checked
0001-arm-logbuffer-make-it-compileclean.patch has no obvious style problems and is ready for submission.
arch/arm/lib/board.c | 1 -
common/cmd_log.c | 2 +-
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index 705d4d2..b1974bf 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -80,7 +80,6 @@ extern void rtl8019_get_enetaddr (uchar * addr);
#include <i2c.h>
#endif
-
/************************************************************************
* Coloured LED functionality
************************************************************************
diff --git a/common/cmd_log.c b/common/cmd_log.c
index 0e89357..249614f 100644
--- a/common/cmd_log.c
+++ b/common/cmd_log.c
@@ -68,7 +68,7 @@ static char *lbuf;
unsigned long __logbuffer_base(void)
{
- return CONFIG_SYS_SDRAM_BASE + gd->bd->bi_memsize - LOGBUFF_LEN;
+ return CONFIG_SYS_SDRAM_BASE + gd->ram_size - LOGBUFF_LEN;
}
unsigned long logbuffer_base (void) __attribute__((weak, alias("__logbuffer_base")));
--
1.7.6.2
More information about the U-Boot
mailing list