Message ID | 1351631056-25938-6-git-send-email-mark.langsdorf@calxeda.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
On 16:04-20121030, Mark Langsdorf wrote: $subject PM / OPP: Also adding info that this allows cpufreq drivers to be used as module might be helpful. > Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com> > Cc: linux-pm@vger.kernel.org Side note: Applies on v3.7-rc3 on rafael's linux-next branch: linux-next 2b7f449 Merge branch 'pm-opp-next' into linux-next on git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git needs a rebase as it probably conflicts with https://patchwork.kernel.org/patch/1582091/ Otherwise, approach: Acked-by: Nishanth Menon <nm@ti.com>
diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c index d946864..37dc5f4 100644 --- a/drivers/base/power/opp.c +++ b/drivers/base/power/opp.c @@ -23,6 +23,7 @@ #include <linux/rcupdate.h> #include <linux/opp.h> #include <linux/of.h> +#include <linux/module.h> /* * Internal data structure organization with the OPP layer library is as @@ -643,6 +644,7 @@ int opp_init_cpufreq_table(struct device *dev, return 0; } +EXPORT_SYMBOL(opp_init_cpufreq_table); /** * opp_free_cpufreq_table() - free the cpufreq table @@ -660,6 +662,7 @@ void opp_free_cpufreq_table(struct device *dev, kfree(*table); *table = NULL; } +EXPORT_SYMBOL(opp_free_cpufreq_table); #endif /* CONFIG_CPU_FREQ */ /** @@ -720,4 +723,5 @@ int of_init_opp_table(struct device *dev) return 0; } +EXPORT_SYMBOL(of_init_opp_table); #endif
Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com> Cc: linux-pm@vger.kernel.org --- drivers/base/power/opp.c | 4 ++++ 1 file changed, 4 insertions(+)