[U-Boot] [PATCH v2 1/2] MX25: tx25: Avoid the usage of extern in C file

Fabio Estevam fabio.estevam at freescale.com
Tue Aug 30 14:20:22 CEST 2011


Avoid the usage of extern in C file as pointed out by checkpatch.

Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
Changes since v1:
- No changes
 arch/arm/include/asm/arch-mx27/imx-regs.h |    1 +
 board/karo/tx25/tx25.c                    |    2 --
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/asm/arch-mx27/imx-regs.h b/arch/arm/include/asm/arch-mx27/imx-regs.h
index b4b2fe6..0c1cda9 100644
--- a/arch/arm/include/asm/arch-mx27/imx-regs.h
+++ b/arch/arm/include/asm/arch-mx27/imx-regs.h
@@ -27,6 +27,7 @@
 #ifndef __ASSEMBLY__
 
 extern void imx_gpio_mode (int gpio_mode);
+extern void mx25_uart1_init_pins(void);
 
 #ifdef CONFIG_MXC_UART
 extern void mx27_uart1_init_pins(void);
diff --git a/board/karo/tx25/tx25.c b/board/karo/tx25/tx25.c
index 25b99e8..c34672a 100644
--- a/board/karo/tx25/tx25.c
+++ b/board/karo/tx25/tx25.c
@@ -141,8 +141,6 @@ void tx25_fec_init(void)
 int board_init()
 {
 #ifdef CONFIG_MXC_UART
-	extern void mx25_uart1_init_pins(void);
-
 	mx25_uart1_init_pins();
 #endif
 	/* board id for linux */
-- 
1.7.1




More information about the U-Boot mailing list