aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index f71093bf83ab..7cf2c093cc54 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2140,9 +2140,10 @@ void clk_unregister(struct clk *clk)
2140 2140
2141 if (!hlist_empty(&clk->children)) { 2141 if (!hlist_empty(&clk->children)) {
2142 struct clk *child; 2142 struct clk *child;
2143 struct hlist_node *t;
2143 2144
2144 /* Reparent all children to the orphan list. */ 2145 /* Reparent all children to the orphan list. */
2145 hlist_for_each_entry(child, &clk->children, child_node) 2146 hlist_for_each_entry_safe(child, t, &clk->children, child_node)
2146 clk_set_parent(child, NULL); 2147 clk_set_parent(child, NULL);
2147 } 2148 }
2148 2149