aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/spear
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2012-10-04 15:19:08 +0530
committerMike Turquette <mturquette@linaro.org>2012-10-29 11:04:34 -0700
commit7d4998f71b292ea8e88d1874b26866092f66412b (patch)
tree573e33ce366b879451083c4067f40763ea0b6f6b /drivers/clk/spear
parentLinux 3.7-rc3 (diff)
downloadlinux-dev-7d4998f71b292ea8e88d1874b26866092f66412b.tar.xz
linux-dev-7d4998f71b292ea8e88d1874b26866092f66412b.zip
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/spear')
-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 5f1b6badeb15..1b9b65bca51e 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,
struct clk_pll *pll = to_clk_pll(hw);
struct pll_rate_tbl *rtbl = pll->vco->rtbl;
unsigned long flags = 0, val;
- int i;
+ int uninitialized_var(i);
clk_pll_round_rate_index(hw, drate, NULL, &i);