]> git.itanic.dy.fi Git - linux-stable/commitdiff
clk: mvebu: armada-37xx-periph: Remove unused var num_parents
authorAnders Roxell <anders.roxell@linaro.org>
Thu, 26 Jul 2018 22:27:21 +0000 (00:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:51:48 +0000 (14:51 +0100)
[ Upstream commit 8927c27b32703e28041ae19bf25ea53461be83a1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/mvebu/armada-37xx-periph.c

index 6f7637b197384d446976f1a77d85c7834805246b..e764dfdea53f00ba9c6ae7fd533429372beb1519 100644 (file)
@@ -419,7 +419,6 @@ static unsigned int armada_3700_pm_dvfs_get_cpu_parent(struct regmap *base)
 static u8 clk_pm_cpu_get_parent(struct clk_hw *hw)
 {
        struct clk_pm_cpu *pm_cpu = to_clk_pm_cpu(hw);
-       int num_parents = clk_hw_get_num_parents(hw);
        u32 val;
 
        if (armada_3700_pm_dvfs_is_enabled(pm_cpu->nb_pm_base)) {