diff options
author | Aaro Koskinen <aaro.koskinen@nokia.com> | 2010-11-18 12:59:47 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-11-24 19:48:25 -0500 |
commit | e6f168212243452eae7c0d0c20c2f6e213933fc8 (patch) | |
tree | f3541bb1906ca5f350207366f5f3076d9929e460 /arch/arm | |
parent | 706afddaf53522b67c81a0b1b38bdccd4d4ff00c (diff) |
arm: omap1: make some functions static
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap1/mcbsp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/mux.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/dma.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/sram.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap1/mcbsp.c b/arch/arm/mach-omap1/mcbsp.c index b3a796a6da03..372ea711faee 100644 --- a/arch/arm/mach-omap1/mcbsp.c +++ b/arch/arm/mach-omap1/mcbsp.c | |||
@@ -174,7 +174,7 @@ static struct omap_mcbsp_platform_data omap16xx_mcbsp_pdata[] = { | |||
174 | #define OMAP16XX_MCBSP_REG_NUM 0 | 174 | #define OMAP16XX_MCBSP_REG_NUM 0 |
175 | #endif | 175 | #endif |
176 | 176 | ||
177 | int __init omap1_mcbsp_init(void) | 177 | static int __init omap1_mcbsp_init(void) |
178 | { | 178 | { |
179 | if (cpu_is_omap7xx()) { | 179 | if (cpu_is_omap7xx()) { |
180 | omap_mcbsp_count = OMAP7XX_MCBSP_PDATA_SZ; | 180 | omap_mcbsp_count = OMAP7XX_MCBSP_PDATA_SZ; |
diff --git a/arch/arm/mach-omap1/mux.c b/arch/arm/mach-omap1/mux.c index 7835add00344..5fdef7a34828 100644 --- a/arch/arm/mach-omap1/mux.c +++ b/arch/arm/mach-omap1/mux.c | |||
@@ -343,7 +343,7 @@ MUX_CFG("Y14_1610_CCP_DATAM", 9, 21, 6, 2, 3, 1, 2, 0, 0) | |||
343 | #define OMAP1XXX_PINS_SZ 0 | 343 | #define OMAP1XXX_PINS_SZ 0 |
344 | #endif /* CONFIG_ARCH_OMAP15XX || CONFIG_ARCH_OMAP16XX */ | 344 | #endif /* CONFIG_ARCH_OMAP15XX || CONFIG_ARCH_OMAP16XX */ |
345 | 345 | ||
346 | int __init_or_module omap1_cfg_reg(const struct pin_config *cfg) | 346 | static int __init_or_module omap1_cfg_reg(const struct pin_config *cfg) |
347 | { | 347 | { |
348 | static DEFINE_SPINLOCK(mux_spin_lock); | 348 | static DEFINE_SPINLOCK(mux_spin_lock); |
349 | unsigned long flags; | 349 | unsigned long flags; |
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 2c2826571d45..a863f5546a6b 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c | |||
@@ -174,7 +174,7 @@ static inline void omap_enable_channel_irq(int lch); | |||
174 | 174 | ||
175 | #ifdef CONFIG_ARCH_OMAP15XX | 175 | #ifdef CONFIG_ARCH_OMAP15XX |
176 | /* Returns 1 if the DMA module is in OMAP1510-compatible mode, 0 otherwise */ | 176 | /* Returns 1 if the DMA module is in OMAP1510-compatible mode, 0 otherwise */ |
177 | int omap_dma_in_1510_mode(void) | 177 | static int omap_dma_in_1510_mode(void) |
178 | { | 178 | { |
179 | return enable_1510_mode; | 179 | return enable_1510_mode; |
180 | } | 180 | } |
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index e2c8eebe6b3a..93641df487a1 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c | |||
@@ -270,7 +270,7 @@ void omap_sram_reprogram_clock(u32 dpllctl, u32 ckctl) | |||
270 | _omap_sram_reprogram_clock(dpllctl, ckctl); | 270 | _omap_sram_reprogram_clock(dpllctl, ckctl); |
271 | } | 271 | } |
272 | 272 | ||
273 | int __init omap1_sram_init(void) | 273 | static int __init omap1_sram_init(void) |
274 | { | 274 | { |
275 | _omap_sram_reprogram_clock = | 275 | _omap_sram_reprogram_clock = |
276 | omap_sram_push(omap1_sram_reprogram_clock, | 276 | omap_sram_push(omap1_sram_reprogram_clock, |