Message ID | CAFULf_wBTEVHYTPyJqWt09gNaenWHiVJCLvNdeRG204TkeBe6Q@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Aug 12, 2011 at 05:27:35PM +0200, Bjarne Steinsbo wrote: > Stop `warning: 'cpu_clkflg' may be used uninitialized in this > function' from compiler. > > Signed-off-by: Bjarne Steinsbo <bsteinsbo@gmail.com> Reviewed-by: Felipe Balbi <balbi@ti.com>
diff --git a/arch/arm/mach-omap2/clock44xx_data.c b/arch/arm/mach-omap2/clock44xx_data.c index 2af0e3f..a9c19c8 100644 --- a/arch/arm/mach-omap2/clock44xx_data.c +++ b/arch/arm/mach-omap2/clock44xx_data.c @@ -3368,7 +3368,7 @@ static struct omap_clk omap44xx_clks[] = { int __init omap4xxx_clk_init(void) { struct omap_clk *c; - u32 cpu_clkflg; + u32 cpu_clkflg = 0; if (cpu_is_omap44xx()) { cpu_mask = RATE_IN_4430;
Stop `warning: 'cpu_clkflg' may be used uninitialized in this function' from compiler. Signed-off-by: Bjarne Steinsbo <bsteinsbo@gmail.com> --- V2: Oops.. Add missing sob. arch/arm/mach-omap2/clock44xx_data.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)