]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARCH: OMAP2: Move extern'ed prototypes to header files in arch/arm/mach-omap2
authorFelipe Balbi <felipe.lima@indt.org.br>
Mon, 17 Dec 2007 20:51:26 +0000 (22:51 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 18 Dec 2007 02:11:43 +0000 (18:11 -0800)
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@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-2430sdp.c
arch/arm/mach-omap2/board-n800.c
arch/arm/mach-omap2/usb-tusb6010.c
include/asm-arm/arch-omap/board-2430sdp.h

index 5e6801929bd88d45a809a242f8af17f949a8d3db..519015f49d2eb4c6d80f92aa714c460a02888ef6 100644 (file)
@@ -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));
index 8909eca76ac3b3b0fdee0a65e9fbaf1c929e49c5..b35bc56c568242292e26c76a30bb5f2fabdc1eb0 100644 (file)
@@ -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));
index 80bb42eb50826acb895ab30de2781e22ff6f8598..9924300097ebae41d7c98a79081cc85690a8649f 100644 (file)
@@ -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)
 {
index 8166aa5c84ee1238ad0aad7f07ec5d3e17adda98..b6677fed388863baf01dfa7caeffe89fe0f23c89 100644 (file)
@@ -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 */