From bc0b313cdd0b2e1c34d9ea754dd014f9a1a47d26 Mon Sep 17 00:00:00 2001 From: Joe Hershberger Date: Tue, 20 Mar 2012 18:01:48 -0500 Subject: [PATCH] Xilinx: ARM: Fix crash when accessing uninit'd ptr The gd->bd pointer is no longer available in dram_init() Signed-off-by: Joe Hershberger --- board/xilinx/dfe/board.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/xilinx/dfe/board.c b/board/xilinx/dfe/board.c index 8710636e117..9e2571a2cc2 100644 --- a/board/xilinx/dfe/board.c +++ b/board/xilinx/dfe/board.c @@ -632,8 +632,7 @@ int board_late_init (void) int dram_init(void) { - gd->bd->bi_dram[0].start = PHYS_SDRAM_1; - gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; + gd->ram_size = PHYS_SDRAM_1_SIZE; return 0; } -- 2.47.3