From 52c411805c090999f015df8bdf8016fb684746d0 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 31 Mar 2017 08:40:24 -0600 Subject: board_f: Drop board_type parameter from initdram() It looks like only cm5200 and tqm8xx use this feature, so we don't really need it in generic code. Drop it and have the users access gd->board_type directly. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese --- common/board_f.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'common') diff --git a/common/board_f.c b/common/board_f.c index e98f319..106fd34 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -180,13 +180,7 @@ static int announce_dram_init(void) #if defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_M68K) static int init_func_ram(void) { -#ifdef CONFIG_BOARD_TYPES - int board_type = gd->board_type; -#else - int board_type = 0; /* use dummy arg */ -#endif - - gd->ram_size = initdram(board_type); + gd->ram_size = initdram(); if (gd->ram_size > 0) return 0; -- cgit v1.1