From patchwork Wed Oct 12 11:13:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Schocher X-Patchwork-Id: 119183 X-Patchwork-Delegate: albert.aribaud@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 07069B6F6F for ; Wed, 12 Oct 2011 22:13:59 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5DD1A28844; Wed, 12 Oct 2011 13:13:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZulwAFaEh9bz; Wed, 12 Oct 2011 13:13:54 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 753332860F; Wed, 12 Oct 2011 13:13:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2EC8B2860F for ; Wed, 12 Oct 2011 13:13:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wy73tm0UORmb for ; Wed, 12 Oct 2011 13:13:42 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from pollux.denx.de (host-82-135-33-74.customer.m-online.net [82.135.33.74]) by theia.denx.de (Postfix) with ESMTP id 2C11228501 for ; Wed, 12 Oct 2011 13:13:40 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 515) id 6C367F0A; Wed, 12 Oct 2011 13:13:40 +0200 (CEST) From: Heiko Schocher To: u-boot@lists.denx.de Date: Wed, 12 Oct 2011 13:13:38 +0200 Message-Id: <1318418018-28462-1-git-send-email-hs@denx.de> X-Mailer: git-send-email 1.7.6.2 In-Reply-To: <1316064446-5125-1-git-send-email-hs@denx.de> References: <1316064446-5125-1-git-send-email-hs@denx.de> Cc: Heiko Schocher Subject: [U-Boot] [PATCH v2] arm, logbuffer: make it compileclean X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Heiko Schocher Cc: Albert ARIBAUD --- - 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 #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")));