|
@@ -1742,7 +1742,7 @@ int __clk_init(struct device *dev, struct clk *clk)
|
|
* this clock
|
|
* this clock
|
|
*/
|
|
*/
|
|
hlist_for_each_entry_safe(orphan, tmp2, &clk_orphan_list, child_node) {
|
|
hlist_for_each_entry_safe(orphan, tmp2, &clk_orphan_list, child_node) {
|
|
- if (orphan->ops->get_parent) {
|
|
|
|
|
|
+ if (orphan->num_parents && orphan->ops->get_parent) {
|
|
i = orphan->ops->get_parent(orphan->hw);
|
|
i = orphan->ops->get_parent(orphan->hw);
|
|
if (!strcmp(clk->name, orphan->parent_names[i]))
|
|
if (!strcmp(clk->name, orphan->parent_names[i]))
|
|
__clk_reparent(orphan, clk);
|
|
__clk_reparent(orphan, clk);
|