aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/cpu-omap.c
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2010-01-08 15:23:16 -0700
committerPaul Walmsley <paul@pwsan.com>2010-01-08 15:23:16 -0700
commit4e37c10d8a721b19933491df7af296aac9281004 (patch)
tree3a82d2f29a5e82a700400ff9d48a87f5c114f6c1 /arch/arm/plat-omap/cpu-omap.c
parentOMAP2xxx OPP: clean up comments in OPP data (diff)
downloadlinux-dev-4e37c10d8a721b19933491df7af296aac9281004.tar.xz
linux-dev-4e37c10d8a721b19933491df7af296aac9281004.zip
OMAP clock/CPUFreq: add clk_exit_cpufreq_table()
A subsequent patch adds code on OMAP2xxx to dynamically allocate the CPUFreq frequency table in clk_init_cpufreq_table(), so for it to avoid a leak, it will need a corresponding function to free the memory. This patch adds clk_exit_cpufreq_table() with generic code to call a chip-specific variant inside the clockfw_lock spinlock via struct clk_functions. Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/plat-omap/cpu-omap.c')
-rw-r--r--arch/arm/plat-omap/cpu-omap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/cpu-omap.c b/arch/arm/plat-omap/cpu-omap.c
index f8ddbdd8b076..6d3d33360056 100644
--- a/arch/arm/plat-omap/cpu-omap.c
+++ b/arch/arm/plat-omap/cpu-omap.c
@@ -134,6 +134,7 @@ static int __init omap_cpu_init(struct cpufreq_policy *policy)
static int omap_cpu_exit(struct cpufreq_policy *policy)
{
+ clk_exit_cpufreq_table(&freq_table);
clk_put(mpu_clk);
return 0;
}