]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
m68k: fix a compiler warning when building for DragonBall
authorDaniel Palmer <danieruru@gmail.com>
Sat, 5 Apr 2014 08:05:45 +0000 (17:05 +0900)
committerGreg Ungerer <gerg@uclinux.org>
Mon, 5 May 2014 22:54:03 +0000 (08:54 +1000)
In file included from arch/m68k/kernel/setup.c:4:0:
arch/m68k/kernel/setup_no.c:70:0: warning: "CPU_NAME" redefined [enabled by default]
 #define CPU_NAME "MC68VZ328"
 ^
arch/m68k/kernel/setup_no.c:61:0: note: this is the location of the previous definition
 #define CPU_NAME "MC68000"
 ^

Signed-off-by: Daniel Palmer <danieruru@gmail.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/kernel/setup_no.c

index 5b16f5d61b44cb4f2cbcb7372d4f98061bef6da0..88c27d94a7214c959c6d75a3ac992a4c95b13b2e 100644 (file)
@@ -58,17 +58,16 @@ void (*mach_halt)(void);
 void (*mach_power_off)(void);
 
 #ifdef CONFIG_M68000
-#define CPU_NAME       "MC68000"
-#endif
-#ifdef CONFIG_M68328
+#if defined(CONFIG_M68328)
 #define CPU_NAME       "MC68328"
-#endif
-#ifdef CONFIG_M68EZ328
+#elif defined(CONFIG_M68EZ328)
 #define CPU_NAME       "MC68EZ328"
-#endif
-#ifdef CONFIG_M68VZ328
+#elif defined(CONFIG_M68VZ328)
 #define CPU_NAME       "MC68VZ328"
+#else
+#define CPU_NAME       "MC68000"
 #endif
+#endif /* CONFIG_M68000 */
 #ifdef CONFIG_M68360
 #define CPU_NAME       "MC68360"
 #endif