From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stany MARCEL Date: Wed, 14 Sep 2011 14:44:27 +0200 Subject: [U-Boot] [PATCH 6/6] ColdFire: Fix compilation with CONFIG_SYS_DRAMSZ1 defined 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> Message-ID: <1316004267-23656-6-git-send-email-stany.marcel@novasys-ingenierie.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@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; -- 1.7.1