Skip to contentSkip to conversation

mpc83xx: move CPU_TYPE_ENTRY over to processor.h

PATCH New Kim Phillips 1 participant 1 message Jun 17, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 mpc83xx: move CPU_TYPE_ENTRY over to processor.h

to avoid this:

cpu.c:47:1: warning: "CPU_TYPE_ENTRY" redefined
In file included from cpu.c:33:
/home/kim/git/u-boot/include/asm/processor.h:982:1: warning: this is the location of the previous definition

---
 cpu/mpc83xx/cpu.c           |    1 -
 include/asm-ppc/processor.h |    7 +++++++
 2 files changed, 7 insertions(+), 1 deletions(-)
cpu/mpc83xx/cpu.c +0 -1
index 36de78d..cc03f8a 100644
@@ -44,7 +44,6 @@ int checkcpu(void)
 	char buf[32];
 	int i;
 
-#define CPU_TYPE_ENTRY(x) {#x, SPR_##x}
 	const struct cpu_type {
 		char name[15];
 		u32 partid;
include/asm-ppc/processor.h +7 -0
index 4bfd9f9..cf44f4f 100644
@@ -979,8 +979,15 @@ struct cpu_type {
 
 struct cpu_type *identify_cpu(uint ver);
 
+#if defined(CONFIG_MPC85xx)
 #define CPU_TYPE_ENTRY(n, v) \
 	{ .name = #n, .soc_ver = SVR_##v, }
+#else
+#if defined(CONFIG_MPC83XX)
+#define CPU_TYPE_ENTRY(x) {#x, SPR_##x}
+#endif
+#endif
+
 
 #ifndef CONFIG_MACH_SPECIFIC
 extern int _machine;
Signature · 1 line
1.5.6.rc2.26.g8c37