diff options
author | Dinh Nguyen <dinguyen@opensource.altera.com> | 2015-07-07 05:59:06 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-07-28 20:59:07 +0200 |
commit | 9da9e761273702b3afd6e3538c23ece95693e586 (patch) | |
tree | df789e1a1803f80c050746bc5b52175a9e7a03cd /drivers/clk/ti/composite.c | |
parent | clk: sunxi: make use of of_clk_parent_fill helper function (diff) | |
download | linux-9da9e761273702b3afd6e3538c23ece95693e586.tar.xz linux-9da9e761273702b3afd6e3538c23ece95693e586.zip |
clk: ti: 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>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/ti/composite.c')
-rw-r--r-- | drivers/clk/ti/composite.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/ti/composite.c b/drivers/clk/ti/composite.c index 96f83cedb4b3..dbef218fe5ec 100644 --- a/drivers/clk/ti/composite.c +++ b/drivers/clk/ti/composite.c @@ -276,7 +276,6 @@ int __init ti_clk_add_component(struct device_node *node, struct clk_hw *hw, int num_parents; const char **parent_names; struct component_clk *clk; - int i; num_parents = of_clk_get_parent_count(node); @@ -289,8 +288,7 @@ int __init ti_clk_add_component(struct device_node *node, struct clk_hw *hw, if (!parent_names) return -ENOMEM; - for (i = 0; i < num_parents; i++) - parent_names[i] = of_clk_get_parent_name(node, i); + of_clk_parent_fill(node, parent_names, num_parents); clk = kzalloc(sizeof(*clk), GFP_KERNEL); if (!clk) { |