mvebu: Add basic support for WRT1900AC (v1) and Turris Omnia (pre 2019)
[librecmc/librecmc.git] / target / linux / mvebu / patches-4.14 / 512-clk-mvebu-armada-37xx-periph-Remove-unused-var-num_p.patch
1 From 8927c27b32703e28041ae19bf25ea53461be83a1 Mon Sep 17 00:00:00 2001
2 From: Anders Roxell <anders.roxell@linaro.org>
3 Date: Fri, 27 Jul 2018 00:27:21 +0200
4 Subject: [PATCH] clk: mvebu: armada-37xx-periph: Remove unused var num_parents
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 When building armada-37xx-periph, num_parents isn't used in function
10 clk_pm_cpu_get_parent:
11 drivers/clk/mvebu/armada-37xx-periph.c: In function ‘clk_pm_cpu_get_parent’:
12 drivers/clk/mvebu/armada-37xx-periph.c:419:6: warning: unused variable ‘num_parents’ [-Wunused-variable]
13   int num_parents = clk_hw_get_num_parents(hw);
14       ^~~~~~~~~~~
15 Remove the declaration of num_parents to dispose the warning.
16
17 Fixes: 616bf80d381d ("clk: mvebu: armada-37xx-periph: Fix wrong return value in get_parent")
18 Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
19 Signed-off-by: Stephen Boyd <sboyd@kernel.org>
20 ---
21  drivers/clk/mvebu/armada-37xx-periph.c | 1 -
22  1 file changed, 1 deletion(-)
23
24 --- a/drivers/clk/mvebu/armada-37xx-periph.c
25 +++ b/drivers/clk/mvebu/armada-37xx-periph.c
26 @@ -419,7 +419,6 @@ static unsigned int armada_3700_pm_dvfs_
27  static u8 clk_pm_cpu_get_parent(struct clk_hw *hw)
28  {
29         struct clk_pm_cpu *pm_cpu = to_clk_pm_cpu(hw);
30 -       int num_parents = clk_hw_get_num_parents(hw);
31         u32 val;
32  
33         if (armada_3700_pm_dvfs_is_enabled(pm_cpu->nb_pm_base)) {