Commit 97e36b3c authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Emilio López

clk: sunxi: get divs parent clock name from parent factor clock

Divs clocks consist of a parent factor clock with multiple outputs,
and seperate clocks for each output. Get the name of the parent
clock from the parent factor clock, instead of the DT node name.
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: default avatarMike Turquette <mturquette@linaro.org>
Signed-off-by: default avatarEmilio López <emilio@elopez.com.ar>
parent 667f542d
...@@ -869,7 +869,7 @@ static void __init sunxi_divs_clk_setup(struct device_node *node, ...@@ -869,7 +869,7 @@ static void __init sunxi_divs_clk_setup(struct device_node *node,
struct divs_data *data) struct divs_data *data)
{ {
struct clk_onecell_data *clk_data; struct clk_onecell_data *clk_data;
const char *parent = node->name; const char *parent;
const char *clk_name; const char *clk_name;
struct clk **clks, *pclk; struct clk **clks, *pclk;
struct clk_hw *gate_hw, *rate_hw; struct clk_hw *gate_hw, *rate_hw;
...@@ -883,6 +883,7 @@ static void __init sunxi_divs_clk_setup(struct device_node *node, ...@@ -883,6 +883,7 @@ static void __init sunxi_divs_clk_setup(struct device_node *node,
/* Set up factor clock that we will be dividing */ /* Set up factor clock that we will be dividing */
pclk = sunxi_factors_clk_setup(node, data->factors); pclk = sunxi_factors_clk_setup(node, data->factors);
parent = __clk_get_name(pclk);
reg = of_iomap(node, 0); reg = of_iomap(node, 0);
......
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