Skip to contentSkip to conversation

86xx: Remove redundant code in initdram

PATCH New Becky Bruce 2 participants 2 messages Nov 4, 2009 – Nov 5, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 board/freescale/mpc8610hpcd/mpc8610hpcd.c |    5 -----
 board/freescale/mpc8641hpcn/mpc8641hpcn.c |    5 -----
 board/sbc8641d/sbc8641d.c                 |    5 -----
 3 files changed, 0 insertions(+), 15 deletions(-)
board/freescale/mpc8610hpcd/mpc8610hpcd.c +0 -5
index 358148f..f42c316 100644
@@ -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;
 }
board/freescale/mpc8641hpcn/mpc8641hpcn.c +0 -5
index 1a08afa..c521527 100644
@@ -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;
 }
board/sbc8641d/sbc8641d.c +0 -5
index aabefa9..c4e9875 100644
@@ -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;
 }
Signature · 1 line
1.6.0.6
Applied
#1 lore raw

PATCH 1/1 86xx: Remove redundant code in initdram

Quoted 9 lines · Becky Bruce

The same code exists both inside an #ifdef and outside of it. Remove the extra code for all the 86xx boards.

---

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