]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/clk/clk.c
Merge branches 'iommu/fixes', 'arm/omap', 'arm/smmu', 'arm/shmobile', 'x86/amd',...
[karo-tx-linux.git] / drivers / clk / clk.c
index f71093bf83ab2036703891e94908a20221ac3ecf..7cf2c093cc54f28dbebd9482e43233a49daf02e3 100644 (file)
@@ -2140,9 +2140,10 @@ void clk_unregister(struct clk *clk)
 
        if (!hlist_empty(&clk->children)) {
                struct clk *child;
+               struct hlist_node *t;
 
                /* Reparent all children to the orphan list. */
-               hlist_for_each_entry(child, &clk->children, child_node)
+               hlist_for_each_entry_safe(child, t, &clk->children, child_node)
                        clk_set_parent(child, NULL);
        }