From patchwork Wed Sep 14 12:44:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: stany MARCEL X-Patchwork-Id: 114672 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 D3D3AB70BE for ; Wed, 14 Sep 2011 22:46:13 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8D90328486; Wed, 14 Sep 2011 14:45:53 +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 jZxg7ugj5wBE; Wed, 14 Sep 2011 14:45:53 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6623028489; Wed, 14 Sep 2011 14:45:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 76C5228475 for ; Wed, 14 Sep 2011 14:45:18 +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 a+JoZQ+4Y89F for ; Wed, 14 Sep 2011 14:45:15 +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 ATLAS.pactenovation.fr (smtp.pactenovation.fr [195.5.242.163]) by theia.denx.de (Postfix) with ESMTP id D8D1728464 for ; Wed, 14 Sep 2011 14:45:11 +0200 (CEST) Received: from ubuntu ([192.168.0.148]) by ATLAS.pactenovation.fr over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Wed, 14 Sep 2011 14:46:18 +0200 From: Stany MARCEL To: u-boot@lists.denx.de Date: Wed, 14 Sep 2011 14:44:27 +0200 Message-Id: <1316004267-23656-6-git-send-email-stany.marcel@novasys-ingenierie.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1316004267-23656-1-git-send-email-stany.marcel@novasys-ingenierie.com> References: <1316004267-23656-1-git-send-email-stany.marcel@novasys-ingenierie.com> X-Antivirus: avast! (VPS 110914-0, 14/09/2011), Outbound message X-Antivirus-Status: Clean X-OriginalArrivalTime: 14 Sep 2011 12:46:18.0187 (UTC) FILETIME=[4C1751B0:01CC72DC] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.500.1024-18384.006 X-TM-AS-Result: No--7.595000-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No Cc: R64188@freescale.com, Stany MARCEL , jason.jin@freescale.com Subject: [U-Boot] [PATCH 6/6] ColdFire: Fix compilation with CONFIG_SYS_DRAMSZ1 defined 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 A temp variable was used but not declared, with CONFIG_SYS_DRAMSZ1 defined. This variable is now declared in the functione when needed. Signed-off-by: Stany MARCEL --- board/freescale/m548xevb/m548xevb.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/board/freescale/m548xevb/m548xevb.c b/board/freescale/m548xevb/m548xevb.c index 4a2a5c7..fbc0888 100644 --- a/board/freescale/m548xevb/m548xevb.c +++ b/board/freescale/m548xevb/m548xevb.c @@ -43,6 +43,9 @@ phys_size_t initdram(int board_type) volatile siu_t *siu = (siu_t *) (MMAP_SIU); volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM); u32 dramsize, i; +#ifdef CONFIG_SYS_DRAMSZ1 + u32 temp; +#endif siu->drv = CONFIG_SYS_SDRAM_DRVSTRENGTH;