diff options
author | Dinh Nguyen <dinguyen@opensource.altera.com> | 2015-07-06 23:59:03 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-07-28 14:59:01 -0400 |
commit | 5f23eff7af6bc1d8cc8e17fc12e8d989042236ed (patch) | |
tree | 1fbe61a605ab27a824e816f1918e8d94aa04a100 | |
parent | f0557fbe1303aade362bd578753a1c898a80851c (diff) |
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: Dinh Nguyen <dinguyen@opensource.altera.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r-- | drivers/clk/keystone/pll.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/keystone/pll.c b/drivers/clk/keystone/pll.c index 4a375ead70e9..d6ef063dae7e 100644 --- a/drivers/clk/keystone/pll.c +++ b/drivers/clk/keystone/pll.c | |||
@@ -309,8 +309,7 @@ static void __init of_pll_mux_clk_init(struct device_node *node) | |||
309 | return; | 309 | return; |
310 | } | 310 | } |
311 | 311 | ||
312 | parents[0] = of_clk_get_parent_name(node, 0); | 312 | of_clk_parent_fill(node, parents, 2); |
313 | parents[1] = of_clk_get_parent_name(node, 1); | ||
314 | if (!parents[0] || !parents[1]) { | 313 | if (!parents[0] || !parents[1]) { |
315 | pr_err("%s: missing parent clocks\n", __func__); | 314 | pr_err("%s: missing parent clocks\n", __func__); |
316 | return; | 315 | return; |