Commit bb64148c authored by Hiroshi DOYU's avatar Hiroshi DOYU Committed by Tony Lindgren

ARM: OMAP: fix uninitialized warning

warning: 'rev_name' may be used uninitialized in this function
Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 17e696dc
...@@ -147,7 +147,7 @@ void __init omap34xx_check_revision(void) ...@@ -147,7 +147,7 @@ void __init omap34xx_check_revision(void)
u32 cpuid, idcode; u32 cpuid, idcode;
u16 hawkeye; u16 hawkeye;
u8 rev; u8 rev;
char *rev_name; char *rev_name = "ES1.0";
/* /*
* We cannot access revision registers on ES1.0. * We cannot access revision registers on ES1.0.
...@@ -157,7 +157,6 @@ void __init omap34xx_check_revision(void) ...@@ -157,7 +157,6 @@ void __init omap34xx_check_revision(void)
cpuid = read_cpuid(CPUID_ID); cpuid = read_cpuid(CPUID_ID);
if ((((cpuid >> 4) & 0xfff) == 0xc08) && ((cpuid & 0xf) == 0x0)) { if ((((cpuid >> 4) & 0xfff) == 0xc08) && ((cpuid & 0xf) == 0x0)) {
system_rev = OMAP3430_REV_ES1_0; system_rev = OMAP3430_REV_ES1_0;
rev_name = "ES1.0";
goto out; goto out;
} }
......
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