diff options
Diffstat (limited to 'drivers/base/power/opp.c')
-rw-r--r-- | drivers/base/power/opp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c index f0077cb8e249..c8ec186303db 100644 --- a/drivers/base/power/opp.c +++ b/drivers/base/power/opp.c | |||
@@ -648,14 +648,14 @@ int opp_init_cpufreq_table(struct device *dev, | |||
648 | 648 | ||
649 | list_for_each_entry(opp, &dev_opp->opp_list, node) { | 649 | list_for_each_entry(opp, &dev_opp->opp_list, node) { |
650 | if (opp->available) { | 650 | if (opp->available) { |
651 | freq_table[i].index = i; | 651 | freq_table[i].driver_data = i; |
652 | freq_table[i].frequency = opp->rate / 1000; | 652 | freq_table[i].frequency = opp->rate / 1000; |
653 | i++; | 653 | i++; |
654 | } | 654 | } |
655 | } | 655 | } |
656 | mutex_unlock(&dev_opp_list_lock); | 656 | mutex_unlock(&dev_opp_list_lock); |
657 | 657 | ||
658 | freq_table[i].index = i; | 658 | freq_table[i].driver_data = i; |
659 | freq_table[i].frequency = CPUFREQ_TABLE_END; | 659 | freq_table[i].frequency = CPUFREQ_TABLE_END; |
660 | 660 | ||
661 | *table = &freq_table[0]; | 661 | *table = &freq_table[0]; |