Commit 9ca91a65 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Maxime Ripard

clk: sunxi: remove unused variable

The only use of the local num_parents variable was remove,
so we now get a warning:

drivers/clk/sunxi/clk-sun4i-tcon-ch1.c: In function 'tcon_ch1_get_parent':
drivers/clk/sunxi/clk-sun4i-tcon-ch1.c:82:6: error: unused variable 'num_parents' [-Werror=unused-variable]

This removes the variable.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 4de2d58b ("clk: sunxi: tcon-ch1: Do not return a negative error in get_parent")
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 07ea0b4d
...@@ -79,7 +79,6 @@ static int tcon_ch1_is_enabled(struct clk_hw *hw) ...@@ -79,7 +79,6 @@ static int tcon_ch1_is_enabled(struct clk_hw *hw)
static u8 tcon_ch1_get_parent(struct clk_hw *hw) static u8 tcon_ch1_get_parent(struct clk_hw *hw)
{ {
struct tcon_ch1_clk *tclk = hw_to_tclk(hw); struct tcon_ch1_clk *tclk = hw_to_tclk(hw);
int num_parents = clk_hw_get_num_parents(hw);
u32 reg; u32 reg;
reg = readl(tclk->reg) >> TCON_CH1_SCLK2_MUX_SHIFT; reg = readl(tclk->reg) >> TCON_CH1_SCLK2_MUX_SHIFT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment