diff options
author | Dinh Nguyen <dinguyen@opensource.altera.com> | 2015-07-07 05:59:05 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-07-28 20:59:05 +0200 |
commit | 8a53fb2bceea00081c4a6af7b477bea8ec00b74b (patch) | |
tree | f9c472e04a9b3218105d7b29984f09d194428d0e /drivers/clk/sunxi/clk-a20-gmac.c | |
parent | clk: st: make use of of_clk_parent_fill helper function (diff) | |
download | linux-8a53fb2bceea00081c4a6af7b477bea8ec00b74b.tar.xz linux-8a53fb2bceea00081c4a6af7b477bea8ec00b74b.zip |
clk: sunxi: 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: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: "Emilio López" <emilio@elopez.com.ar>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/sunxi/clk-a20-gmac.c')
-rw-r--r-- | drivers/clk/sunxi/clk-a20-gmac.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/sunxi/clk-a20-gmac.c b/drivers/clk/sunxi/clk-a20-gmac.c index 0dcf4f205fb8..1611b036421c 100644 --- a/drivers/clk/sunxi/clk-a20-gmac.c +++ b/drivers/clk/sunxi/clk-a20-gmac.c @@ -80,9 +80,7 @@ static void __init sun7i_a20_gmac_clk_setup(struct device_node *node) goto free_mux; /* gmac clock requires exactly 2 parents */ - parents[0] = of_clk_get_parent_name(node, 0); - parents[1] = of_clk_get_parent_name(node, 1); - if (!parents[0] || !parents[1]) + if (of_clk_parent_fill(node, parents, 2) != 2) goto free_gate; reg = of_iomap(node, 0); |