aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2012-10-04 05:49:08 -0400
committerMike Turquette <mturquette@linaro.org>2012-10-29 14:04:34 -0400
commit7d4998f71b292ea8e88d1874b26866092f66412b (patch)
tree573e33ce366b879451083c4067f40763ea0b6f6b /drivers/clk
parent8f0d8163b50e01f398b14bcd4dc039ac5ab18d64 (diff)
clk: SPEAr: Vco-pll: Fix compilation warning
Currently we are getting following warning for SPEAr clk-vco-pll. "warning: i is used uninitialized in this function." This is because we are getting value of i by passing its pointer to another routine. The variables here are really not used uninitialized. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/spear/clk-vco-pll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/spear/clk-vco-pll.c b/drivers/clk/spear/clk-vco-pll.c
index 5f1b6badeb1..1b9b65bca51 100644
--- a/drivers/clk/spear/clk-vco-pll.c
+++ b/drivers/clk/spear/clk-vco-pll.c
@@ -147,7 +147,7 @@ static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate,
147 struct clk_pll *pll = to_clk_pll(hw); 147 struct clk_pll *pll = to_clk_pll(hw);
148 struct pll_rate_tbl *rtbl = pll->vco->rtbl; 148 struct pll_rate_tbl *rtbl = pll->vco->rtbl;
149 unsigned long flags = 0, val; 149 unsigned long flags = 0, val;
150 int i; 150 int uninitialized_var(i);
151 151
152 clk_pll_round_rate_index(hw, drate, NULL, &i); 152 clk_pll_round_rate_index(hw, drate, NULL, &i);
153 153