Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336512
b: refs/heads/master
c: 1f61e5f
h: refs/heads/master
v: v3
  • Loading branch information
Martin Fuzzey authored and Mike Turquette committed Nov 26, 2012
1 parent 5999210 commit 1a7dddf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 45228ef32240957b1536fbba1ca12377cb2e587c
refs/heads/master: 1f61e5f143b578606389887887af549bc5554353
10 changes: 9 additions & 1 deletion trunk/drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1298,12 +1298,20 @@ int __clk_init(struct device *dev, struct clk *clk)
* walk the list of orphan clocks and reparent any that are children of
* this clock
*/
hlist_for_each_entry_safe(orphan, tmp, tmp2, &clk_orphan_list, child_node)
hlist_for_each_entry_safe(orphan, tmp, tmp2, &clk_orphan_list, child_node) {
if (orphan->ops->get_parent) {
i = orphan->ops->get_parent(orphan->hw);
if (!strcmp(clk->name, orphan->parent_names[i]))
__clk_reparent(orphan, clk);
continue;
}

for (i = 0; i < orphan->num_parents; i++)
if (!strcmp(clk->name, orphan->parent_names[i])) {
__clk_reparent(orphan, clk);
break;
}
}

/*
* optional platform-specific magic
Expand Down

0 comments on commit 1a7dddf

Please sign in to comment.