Skip to contentSkip to conversation

mx5: soc.c: Fix Codyng Style

PATCH Superseded Fabio Estevam 1 participant 1 message Oct 2, 2011 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mx5: soc.c: Fix Codyng Style

Do not declare extern in c files as pointed out by checkpatch.

---
 arch/arm/cpu/armv7/mx5/soc.c              |   10 ++--------
 arch/arm/include/asm/arch-mx5/sys_proto.h |   10 ++++++++++
 2 files changed, 12 insertions(+), 8 deletions(-)
arch/arm/cpu/armv7/mx5/soc.c +2 -8
index c6106d5..cf12ba8 100644
@@ -26,6 +26,8 @@
 #include <common.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
+#include <asm/arch/sys_proto.h>
+
 #include <asm/errno.h>
 #include <asm/io.h>
 
@@ -117,14 +119,6 @@ int print_cpuinfo(void)
 }
 #endif
 
-/*
- * Initializes on-chip ethernet controllers.
- * to override, implement board_eth_init()
- */
-#if defined(CONFIG_FEC_MXC)
-extern int fecmxc_initialize(bd_t *bis);
-#endif
-
 int cpu_eth_init(bd_t *bis)
 {
 	int rc = -ENODEV;
arch/arm/include/asm/arch-mx5/sys_proto.h +10 -0
index ce63675..789558e 100644
@@ -28,4 +28,14 @@ u32 get_cpu_rev(void);
 #define is_soc_rev(rev)	((get_cpu_rev() & 0xFF) - rev)
 void sdelay(unsigned long);
 void set_chipselect_size(int const);
+
+/*
+ * Initializes on-chip ethernet controllers.
+ * to override, implement board_eth_init()
+ */
+#if defined(CONFIG_FEC_MXC)
+int fecmxc_initialize(bd_t *bis);
+
+#endif
+
 #endif
Signature · 1 line
1.7.1