Commit 405505c2 authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren

arm: omap2: clksel: fix compile warningOrganization: Texas Instruments\n

Fix the following compile warning:
arch/arm/mach-omap2/clkt_clksel.c: In function '_get_div_and_fieldval':
arch/arm/mach-omap2/clkt_clksel.c:100:35: warning: 'max_clkr' may be
used uninitialized in this function
Acked-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 9238b6d8
...@@ -97,7 +97,7 @@ static u8 _get_div_and_fieldval(struct clk *src_clk, struct clk *clk, ...@@ -97,7 +97,7 @@ static u8 _get_div_and_fieldval(struct clk *src_clk, struct clk *clk,
u32 *field_val) u32 *field_val)
{ {
const struct clksel *clks; const struct clksel *clks;
const struct clksel_rate *clkr, *max_clkr; const struct clksel_rate *clkr, *max_clkr = NULL;
u8 max_div = 0; u8 max_div = 0;
clks = _get_clksel_by_parent(clk, src_clk); clks = _get_clksel_by_parent(clk, src_clk);
......
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