[PATCH] ARCH: OMAP2: Move extern'ed prototypes to header files in arch/arm/mach-omap2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Prototypes with extern should rely only on header files so there's only
one copy of each.

It also helps when changing that function's prototype to get mis-uses of
that function.

Signed-off-by: Felipe Balbi <felipe.lima@xxxxxxxxxxx>
---
 arch/arm/mach-omap2/board-2430sdp.c       |    3 ---
 arch/arm/mach-omap2/board-n800.c          |    2 --
 arch/arm/mach-omap2/usb-tusb6010.c        |    2 --
 include/asm-arm/arch-omap/board-2430sdp.h |    4 ++++
 4 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c
index 5e68019..519015f 100644
--- a/arch/arm/mach-omap2/board-2430sdp.c
+++ b/arch/arm/mach-omap2/board-2430sdp.c
@@ -368,9 +368,6 @@ static int __init omap2430_i2c_init(void)
 	return 0;
 }
 
-extern void __init sdp2430_flash_init(void);
-extern void __init sdp2430_usb_init(void);
-
 static void __init omap_2430sdp_init(void)
 {
 	platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices));
diff --git a/arch/arm/mach-omap2/board-n800.c b/arch/arm/mach-omap2/board-n800.c
index 8909eca..b35bc56 100644
--- a/arch/arm/mach-omap2/board-n800.c
+++ b/arch/arm/mach-omap2/board-n800.c
@@ -457,8 +457,6 @@ static struct i2c_board_info __initdata n800_i2c_board_info_2[] = {
 #endif
 };
 
-extern void __init n800_mmc_init(void);
-
 void __init nokia_n800_common_init(void)
 {
 	platform_add_devices(n800_devices, ARRAY_SIZE(n800_devices));
diff --git a/arch/arm/mach-omap2/usb-tusb6010.c b/arch/arm/mach-omap2/usb-tusb6010.c
index 80bb42e..9924300 100644
--- a/arch/arm/mach-omap2/usb-tusb6010.c
+++ b/arch/arm/mach-omap2/usb-tusb6010.c
@@ -175,8 +175,6 @@ static int tusb_set_sync_mode(unsigned sysclk_ps, unsigned fclk_ps)
 	return gpmc_cs_set_timings(sync_cs, &t);
 }
 
-extern unsigned long gpmc_get_fclk_period(void);
-
 /* tusb driver calls this when it changes the chip's clocking */
 int tusb6010_platform_retime(unsigned is_refclk)
 {
diff --git a/include/asm-arm/arch-omap/board-2430sdp.h b/include/asm-arm/arch-omap/board-2430sdp.h
index 8166aa5..b6677fe 100644
--- a/include/asm-arm/arch-omap/board-2430sdp.h
+++ b/include/asm-arm/arch-omap/board-2430sdp.h
@@ -45,4 +45,8 @@
 #define IH_TWL4030_GPIO_END		(IH_TWL4030_BASE+18)
 #define NR_IRQS				(IH_TWL4030_GPIO_END)
 
+/* Function prototypes */
+extern void __init sdp2430_flash_init(void);
+extern void __init sdp2430_usb_init(void);
+
 #endif /* __ASM_ARCH_OMAP_2430SDP_H */
-- 
1.5.4.rc0.56.g6fbe

-
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux