[U-Boot] [PATCH] 86xx: Remove redundant code in initdram

The same code exists both inside an #ifdef and outside of it. Remove the extra code for all the 86xx boards.
Signed-off-by: Becky Bruce beckyb@kernel.crashing.org --- board/freescale/mpc8610hpcd/mpc8610hpcd.c | 5 ----- board/freescale/mpc8641hpcn/mpc8641hpcn.c | 5 ----- board/sbc8641d/sbc8641d.c | 5 ----- 3 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/board/freescale/mpc8610hpcd/mpc8610hpcd.c b/board/freescale/mpc8610hpcd/mpc8610hpcd.c index 358148f..f42c316 100644 --- a/board/freescale/mpc8610hpcd/mpc8610hpcd.c +++ b/board/freescale/mpc8610hpcd/mpc8610hpcd.c @@ -127,11 +127,6 @@ initdram(int board_type) dram_size = fixed_sdram(); #endif
-#if defined(CONFIG_SYS_RAMBOOT) - puts(" DDR: "); - return dram_size; -#endif - puts(" DDR: "); return dram_size; } diff --git a/board/freescale/mpc8641hpcn/mpc8641hpcn.c b/board/freescale/mpc8641hpcn/mpc8641hpcn.c index 1a08afa..c521527 100644 --- a/board/freescale/mpc8641hpcn/mpc8641hpcn.c +++ b/board/freescale/mpc8641hpcn/mpc8641hpcn.c @@ -74,11 +74,6 @@ initdram(int board_type) dram_size = fixed_sdram(); #endif
-#if defined(CONFIG_SYS_RAMBOOT) - puts(" DDR: "); - return dram_size; -#endif - puts(" DDR: "); return dram_size; } diff --git a/board/sbc8641d/sbc8641d.c b/board/sbc8641d/sbc8641d.c index aabefa9..c4e9875 100644 --- a/board/sbc8641d/sbc8641d.c +++ b/board/sbc8641d/sbc8641d.c @@ -62,11 +62,6 @@ phys_size_t initdram (int board_type) dram_size = fixed_sdram (); #endif
-#if defined(CONFIG_SYS_RAMBOOT) - puts (" DDR: "); - return dram_size; -#endif - puts (" DDR: "); return dram_size; }

On Nov 4, 2009, at 5:34 PM, Becky Bruce wrote:
The same code exists both inside an #ifdef and outside of it. Remove the extra code for all the 86xx boards.
Signed-off-by: Becky Bruce beckyb@kernel.crashing.org
board/freescale/mpc8610hpcd/mpc8610hpcd.c | 5 ----- board/freescale/mpc8641hpcn/mpc8641hpcn.c | 5 ----- board/sbc8641d/sbc8641d.c | 5 ----- 3 files changed, 0 insertions(+), 15 deletions(-)
applied
- k
participants (2)
-
Becky Bruce
-
Kumar Gala