mx5: soc.c: Fix Codyng Style
PATCH 1/1 mx5: soc.c: Fix Codyng Style
Do not declare extern in c files as pointed out by checkpatch.
Signed-off-by Fabio Estevam <[email protected]>
--- 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
@@ -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
@@ -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