diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2018-07-26 18:27:21 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-07-27 12:55:43 -0400 |
commit | 8927c27b32703e28041ae19bf25ea53461be83a1 (patch) | |
tree | d24ce2f56567238705a921e5b422507f1a982868 | |
parent | 616bf80d381da13fbb392ebff06f46f946e3ee84 (diff) |
clk: mvebu: armada-37xx-periph: Remove unused var num_parents
When building armada-37xx-periph, num_parents isn't used in function
clk_pm_cpu_get_parent:
drivers/clk/mvebu/armada-37xx-periph.c: In function ‘clk_pm_cpu_get_parent’:
drivers/clk/mvebu/armada-37xx-periph.c:419:6: warning: unused variable ‘num_parents’ [-Wunused-variable]
int num_parents = clk_hw_get_num_parents(hw);
^~~~~~~~~~~
Remove the declaration of num_parents to dispose the warning.
Fixes: 616bf80d381d ("clk: mvebu: armada-37xx-periph: Fix wrong return value in get_parent")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | drivers/clk/mvebu/armada-37xx-periph.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c index 5cf0a52b87e8..b841ec3c6d6e 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c | |||
@@ -418,7 +418,6 @@ static unsigned int armada_3700_pm_dvfs_get_cpu_parent(struct regmap *base) | |||
418 | static u8 clk_pm_cpu_get_parent(struct clk_hw *hw) | 418 | static u8 clk_pm_cpu_get_parent(struct clk_hw *hw) |
419 | { | 419 | { |
420 | struct clk_pm_cpu *pm_cpu = to_clk_pm_cpu(hw); | 420 | struct clk_pm_cpu *pm_cpu = to_clk_pm_cpu(hw); |
421 | int num_parents = clk_hw_get_num_parents(hw); | ||
422 | u32 val; | 421 | u32 val; |
423 | 422 | ||
424 | if (armada_3700_pm_dvfs_is_enabled(pm_cpu->nb_pm_base)) { | 423 | if (armada_3700_pm_dvfs_is_enabled(pm_cpu->nb_pm_base)) { |