summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/clk/ti/composite.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/clk/ti/composite.c')
-rw-r--r--kernel/drivers/clk/ti/composite.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/drivers/clk/ti/composite.c b/kernel/drivers/clk/ti/composite.c
index 96f83cedb..dbef218fe 100644
--- a/kernel/drivers/clk/ti/composite.c
+++ b/kernel/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) {