Commit 5ebc0d52 authored by Nishanth Menon's avatar Nishanth Menon Committed by Tony Lindgren

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: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent a5ba7ae2
...@@ -102,7 +102,7 @@ static struct omap_id omap_ids[] __initdata = { ...@@ -102,7 +102,7 @@ static struct omap_id omap_ids[] __initdata = {
static void __iomem *tap_base; static void __iomem *tap_base;
static u16 tap_prod_id; static u16 tap_prod_id;
void __init omap24xx_check_revision(void) static void __init omap24xx_check_revision(void)
{ {
int i, j; int i, j;
u32 idcode, prod_id; u32 idcode, prod_id;
...@@ -164,7 +164,7 @@ void __init omap24xx_check_revision(void) ...@@ -164,7 +164,7 @@ void __init omap24xx_check_revision(void)
omap3_features |= OMAP3_HAS_ ##feat; \ omap3_features |= OMAP3_HAS_ ##feat; \
} }
void __init omap3_check_features(void) static void __init omap3_check_features(void)
{ {
u32 status; u32 status;
...@@ -186,7 +186,7 @@ void __init omap3_check_features(void) ...@@ -186,7 +186,7 @@ void __init omap3_check_features(void)
*/ */
} }
void __init omap3_check_revision(void) static void __init omap3_check_revision(void)
{ {
u32 cpuid, idcode; u32 cpuid, idcode;
u16 hawkeye; u16 hawkeye;
...@@ -267,7 +267,7 @@ void __init omap3_check_revision(void) ...@@ -267,7 +267,7 @@ void __init omap3_check_revision(void)
} }
} }
void __init omap4_check_revision(void) static void __init omap4_check_revision(void)
{ {
u32 idcode; u32 idcode;
u16 hawkeye; u16 hawkeye;
...@@ -297,7 +297,7 @@ void __init omap4_check_revision(void) ...@@ -297,7 +297,7 @@ void __init omap4_check_revision(void)
if (omap3_has_ ##feat()) \ if (omap3_has_ ##feat()) \
printk(#feat" "); printk(#feat" ");
void __init omap3_cpuinfo(void) static void __init omap3_cpuinfo(void)
{ {
u8 rev = GET_OMAP_REVISION(); u8 rev = GET_OMAP_REVISION();
char cpu_name[16], cpu_rev[16]; char cpu_name[16], cpu_rev[16];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment