diff options
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/opp.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c index 56a6899f5e9e..5cc12322ef32 100644 --- a/drivers/base/power/opp.c +++ b/drivers/base/power/opp.c | |||
@@ -625,4 +625,21 @@ int opp_init_cpufreq_table(struct device *dev, | |||
625 | 625 | ||
626 | return 0; | 626 | return 0; |
627 | } | 627 | } |
628 | |||
629 | /** | ||
630 | * opp_free_cpufreq_table() - free the cpufreq table | ||
631 | * @dev: device for which we do this operation | ||
632 | * @table: table to free | ||
633 | * | ||
634 | * Free up the table allocated by opp_init_cpufreq_table | ||
635 | */ | ||
636 | void opp_free_cpufreq_table(struct device *dev, | ||
637 | struct cpufreq_frequency_table **table) | ||
638 | { | ||
639 | if (!table) | ||
640 | return; | ||
641 | |||
642 | kfree(*table); | ||
643 | *table = NULL; | ||
644 | } | ||
628 | #endif /* CONFIG_CPU_FREQ */ | 645 | #endif /* CONFIG_CPU_FREQ */ |