diff options
author | Nishanth Menon <nm@ti.com> | 2010-08-02 07:21:40 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-08-02 07:21:40 -0400 |
commit | 5ebc0d526af51d84b3d6fbf27b69f8d44f277064 (patch) | |
tree | 44d6e6d3e23bbc0f58398624c644a70dd775eef6 /arch/arm/mach-omap2 | |
parent | a5ba7ae2a1b9d4ce0b2ad1cd902af88ac6f7ef33 (diff) |
omap2/3: id: fix sparse warning
omap24xx_check_revision, omap3_check_features,
omap3_check_revision, omap4_check_revision, omap3_cpuinfo
are not used elsewhere, it should be static
Also fixes the following sparse warnings:
arch/arm/mach-omap2/id.c:105:13: warning: symbol 'omap24xx_check_revision'
was not declared. Should it be static?
arch/arm/mach-omap2/id.c:167:13: warning: symbol 'omap3_check_features'
was not declared. Should it be static?
arch/arm/mach-omap2/id.c:189:13: warning: symbol 'omap3_check_revision'
was not declared. Should it be static?
arch/arm/mach-omap2/id.c:270:13: warning: symbol 'omap4_check_revision'
was not declared. Should it be static?
arch/arm/mach-omap2/id.c:300:13: warning: symbol 'omap3_cpuinfo'
was not declared. Should it be static?
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/id.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 37b8a1a4adf8..c7bf0e1c4d9c 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c | |||
@@ -102,7 +102,7 @@ static struct omap_id omap_ids[] __initdata = { | |||
102 | static void __iomem *tap_base; | 102 | static void __iomem *tap_base; |
103 | static u16 tap_prod_id; | 103 | static u16 tap_prod_id; |
104 | 104 | ||
105 | void __init omap24xx_check_revision(void) | 105 | static void __init omap24xx_check_revision(void) |
106 | { | 106 | { |
107 | int i, j; | 107 | int i, j; |
108 | u32 idcode, prod_id; | 108 | u32 idcode, prod_id; |
@@ -164,7 +164,7 @@ void __init omap24xx_check_revision(void) | |||
164 | omap3_features |= OMAP3_HAS_ ##feat; \ | 164 | omap3_features |= OMAP3_HAS_ ##feat; \ |
165 | } | 165 | } |
166 | 166 | ||
167 | void __init omap3_check_features(void) | 167 | static void __init omap3_check_features(void) |
168 | { | 168 | { |
169 | u32 status; | 169 | u32 status; |
170 | 170 | ||
@@ -186,7 +186,7 @@ void __init omap3_check_features(void) | |||
186 | */ | 186 | */ |
187 | } | 187 | } |
188 | 188 | ||
189 | void __init omap3_check_revision(void) | 189 | static void __init omap3_check_revision(void) |
190 | { | 190 | { |
191 | u32 cpuid, idcode; | 191 | u32 cpuid, idcode; |
192 | u16 hawkeye; | 192 | u16 hawkeye; |
@@ -267,7 +267,7 @@ void __init omap3_check_revision(void) | |||
267 | } | 267 | } |
268 | } | 268 | } |
269 | 269 | ||
270 | void __init omap4_check_revision(void) | 270 | static void __init omap4_check_revision(void) |
271 | { | 271 | { |
272 | u32 idcode; | 272 | u32 idcode; |
273 | u16 hawkeye; | 273 | u16 hawkeye; |
@@ -297,7 +297,7 @@ void __init omap4_check_revision(void) | |||
297 | if (omap3_has_ ##feat()) \ | 297 | if (omap3_has_ ##feat()) \ |
298 | printk(#feat" "); | 298 | printk(#feat" "); |
299 | 299 | ||
300 | void __init omap3_cpuinfo(void) | 300 | static void __init omap3_cpuinfo(void) |
301 | { | 301 | { |
302 | u8 rev = GET_OMAP_REVISION(); | 302 | u8 rev = GET_OMAP_REVISION(); |
303 | char cpu_name[16], cpu_rev[16]; | 303 | char cpu_name[16], cpu_rev[16]; |