ColdFire: Fix compilation with CONFIG_SYS_DRAMSZ1 defined
authorstany MARCEL <stany.marcel@novasys-ingenierie.com>
Fri, 14 Oct 2011 04:38:06 +0000 (04:38 +0000)
committerjason <jason@jason-ThinkPad-T61.(none)>
Tue, 18 Oct 2011 16:14:16 +0000 (00:14 +0800)
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 <stany.marcel@novasys-ingenierie.com>
board/freescale/m548xevb/m548xevb.c

index 4a2a5c78fb7441da69254b9709015d7618842196..fbc08883201a606a31f8c5a5d6da803b9bc38a13 100644 (file)
@@ -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;