]> git.sur5r.net Git - u-boot/commitdiff
ARMV7: Vexpress: fix compile warnings
authorMatt Waddel <matt.waddel@linaro.org>
Tue, 2 Nov 2010 23:25:21 +0000 (17:25 -0600)
committerWolfgang Denk <wd@denx.de>
Wed, 8 Dec 2010 22:44:51 +0000 (23:44 +0100)
Fixed "pointer from integer without a cast" warnings in Vexpress.

Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
board/armltd/vexpress/ca9x4_ct_vxp.c

index 48dfc8c4358abb47a7ec4dd0749525bf84494970..c1c4ea1c34d26aca7887547483efb8e0792b7b5a 100644 (file)
@@ -95,16 +95,19 @@ static void flash__init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE, PHYS_SDRAM_1_SIZE);
+       gd->ram_size =
+               get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, PHYS_SDRAM_1_SIZE);
        return 0;
 }
 
 void dram_init_banksize(void)
 {
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-       gd->bd->bi_dram[0].size = get_ram_size(PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
+       gd->bd->bi_dram[0].size =
+                       get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
        gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
-       gd->bd->bi_dram[1].size = get_ram_size(PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
+       gd->bd->bi_dram[1].size =
+                       get_ram_size((long *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
 }
 
 int timer_init(void)