Message ID | 1481772480-29544-20-git-send-email-sjg@chromium.org |
---|---|
State | Deferred |
Delegated to: | Michal Simek |
Headers | show |
diff --git a/arch/blackfin/cpu/cpu.c b/arch/blackfin/cpu/cpu.c index 25c97b5..afb2b0a 100644 --- a/arch/blackfin/cpu/cpu.c +++ b/arch/blackfin/cpu/cpu.c @@ -92,8 +92,6 @@ static int global_board_data_init(void) bd->bi_memstart = CONFIG_SYS_SDRAM_BASE; bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE; - gd->ram_size = CONFIG_SYS_MAX_RAM_SIZE; - return 0; } @@ -348,6 +346,7 @@ void cpu_init_f(ulong bootflag, ulong loaded_from_ldr) #endif serial_early_puts("Init global data\n"); + gd->ram_size = CONFIG_SYS_MAX_RAM_SIZE; global_board_data_init(); }
Move the setting of the RAM size out of the function which now only deals with bd_info. This will allow us to rename it. Signed-off-by: Simon Glass <sjg@chromium.org> --- arch/blackfin/cpu/cpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)