Commit 5f23eff7 authored by Dinh Nguyen's avatar Dinh Nguyen Committed by Stephen Boyd

clk: keystone: make use of of_clk_parent_fill helper function

Use of_clk_parent_fill to fill in the parent clock names' array.
Signed-off-by: default avatarDinh Nguyen <dinguyen@opensource.altera.com>
Acked-by: default avatarSantosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent f0557fbe
...@@ -309,8 +309,7 @@ static void __init of_pll_mux_clk_init(struct device_node *node) ...@@ -309,8 +309,7 @@ static void __init of_pll_mux_clk_init(struct device_node *node)
return; return;
} }
parents[0] = of_clk_get_parent_name(node, 0); of_clk_parent_fill(node, parents, 2);
parents[1] = of_clk_get_parent_name(node, 1);
if (!parents[0] || !parents[1]) { if (!parents[0] || !parents[1]) {
pr_err("%s: missing parent clocks\n", __func__); pr_err("%s: missing parent clocks\n", __func__);
return; return;
......
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