Commit 9d37cf310af1b9a6583396c98255fc86f9aab433
Committed by
Wolfgang Denk
1 parent
7d38f87474
Exists in
master
and in
54 other branches
ARMV7: Vexpress: fix compile warnings
Fixed "pointer from integer without a cast" warnings in Vexpress. Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
Showing 1 changed file with 6 additions and 3 deletions Side-by-side Diff
board/armltd/vexpress/ca9x4_ct_vxp.c
... | ... | @@ -95,16 +95,19 @@ |
95 | 95 | |
96 | 96 | int dram_init(void) |
97 | 97 | { |
98 | - gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE, PHYS_SDRAM_1_SIZE); | |
98 | + gd->ram_size = | |
99 | + get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, PHYS_SDRAM_1_SIZE); | |
99 | 100 | return 0; |
100 | 101 | } |
101 | 102 | |
102 | 103 | void dram_init_banksize(void) |
103 | 104 | { |
104 | 105 | gd->bd->bi_dram[0].start = PHYS_SDRAM_1; |
105 | - gd->bd->bi_dram[0].size = get_ram_size(PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE); | |
106 | + gd->bd->bi_dram[0].size = | |
107 | + get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE); | |
106 | 108 | gd->bd->bi_dram[1].start = PHYS_SDRAM_2; |
107 | - gd->bd->bi_dram[1].size = get_ram_size(PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE); | |
109 | + gd->bd->bi_dram[1].size = | |
110 | + get_ram_size((long *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE); | |
108 | 111 | } |
109 | 112 | |
110 | 113 | int timer_init(void) |