From: Dinh Nguyen Date: Tue, 7 Jul 2015 03:59:03 +0000 (-0500) Subject: clk: keystone: make use of of_clk_parent_fill helper function X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5f23eff7af6bc1d8cc8e17fc12e8d989042236ed;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Santosh Shilimkar Signed-off-by: Stephen Boyd --- 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) return; } - parents[0] = of_clk_get_parent_name(node, 0); - parents[1] = of_clk_get_parent_name(node, 1); + of_clk_parent_fill(node, parents, 2); if (!parents[0] || !parents[1]) { pr_err("%s: missing parent clocks\n", __func__); return;