arm: omap1: make some functions static
authorAaro Koskinen <aaro.koskinen@nokia.com>
Thu, 18 Nov 2010 17:59:47 +0000 (19:59 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 25 Nov 2010 00:48:25 +0000 (16:48 -0800)
Make some functions static to get rid of the following sparse warnings:

arch/arm/mach-omap1/mcbsp.c:177:12: warning: symbol 'omap1_mcbsp_init' was not declared. Should it be static?
arch/arm/mach-omap1/mux.c:346:22: warning: symbol 'omap1_cfg_reg' was not declared. Should it be static?
arch/arm/plat-omap/dma.c:177:5: warning: symbol 'omap_dma_in_1510_mode' was not declared. Should it be static?
arch/arm/plat-omap/sram.c:273:12: warning: symbol 'omap1_sram_init' was not declared. Should it be static?

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/mcbsp.c
arch/arm/mach-omap1/mux.c
arch/arm/plat-omap/dma.c
arch/arm/plat-omap/sram.c

index b3a796a6da03579b1704960b18a65ea540382784..372ea711faeeea2391b79a3607ad02a7f0c27899 100644 (file)
@@ -174,7 +174,7 @@ static struct omap_mcbsp_platform_data omap16xx_mcbsp_pdata[] = {
 #define OMAP16XX_MCBSP_REG_NUM         0
 #endif
 
-int __init omap1_mcbsp_init(void)
+static int __init omap1_mcbsp_init(void)
 {
        if (cpu_is_omap7xx()) {
                omap_mcbsp_count = OMAP7XX_MCBSP_PDATA_SZ;
index 7835add0034478309f5790f2cd0cde6e0cfa7bc8..5fdef7a34828adfc80fbe7463b95f290b916247d 100644 (file)
@@ -343,7 +343,7 @@ MUX_CFG("Y14_1610_CCP_DATAM",        9,   21,    6,   2,   3,   1,    2,     0,  0)
 #define OMAP1XXX_PINS_SZ       0
 #endif /* CONFIG_ARCH_OMAP15XX || CONFIG_ARCH_OMAP16XX */
 
-int __init_or_module omap1_cfg_reg(const struct pin_config *cfg)
+static int __init_or_module omap1_cfg_reg(const struct pin_config *cfg)
 {
        static DEFINE_SPINLOCK(mux_spin_lock);
        unsigned long flags;
index 2c2826571d45856145f7a31a416edee84b13802e..a863f5546a6b1aa989a37e9c8d7914591ad63a0e 100644 (file)
@@ -174,7 +174,7 @@ static inline void omap_enable_channel_irq(int lch);
 
 #ifdef CONFIG_ARCH_OMAP15XX
 /* Returns 1 if the DMA module is in OMAP1510-compatible mode, 0 otherwise */
-int omap_dma_in_1510_mode(void)
+static int omap_dma_in_1510_mode(void)
 {
        return enable_1510_mode;
 }
index e2c8eebe6b3a54a1ab7c0a9ffa25f280117ceb04..93641df487a19b92f8d9e56e69f95781ccccca6a 100644 (file)
@@ -270,7 +270,7 @@ void omap_sram_reprogram_clock(u32 dpllctl, u32 ckctl)
        _omap_sram_reprogram_clock(dpllctl, ckctl);
 }
 
-int __init omap1_sram_init(void)
+static int __init omap1_sram_init(void)
 {
        _omap_sram_reprogram_clock =
                        omap_sram_push(omap1_sram_reprogram_clock,
This page took 0.029065 seconds and 5 git commands to generate.