OPP: Move required opps configuration to specialized callback
[linux-2.6-microblaze.git] / drivers / opp / of.c
index bed2b65..233eab7 100644 (file)
@@ -196,6 +196,8 @@ static void _opp_table_alloc_required_tables(struct opp_table *opp_table,
        /* Let's do the linking later on */
        if (lazy)
                list_add(&opp_table->lazy, &lazy_opp_tables);
+       else
+               _update_set_required_opps(opp_table);
 
        goto put_np;
 
@@ -411,6 +413,7 @@ static void lazy_link_required_opp_table(struct opp_table *new_table)
 
                /* All required opp-tables found, remove from lazy list */
                if (!lazy) {
+                       _update_set_required_opps(opp_table);
                        list_del_init(&opp_table->lazy);
 
                        list_for_each_entry(opp, &opp_table->opp_list, node)