Commit c79589dc5e467705757d4a03345738c583308976

Authored by Nishanth Menon
Committed by Afzal Mohammed
1 parent f3b5c894fd
Exists in master

cpufreq: OMAP: only supports OPP library

OMAP2 is the only family using clk_[init|exit]_cpufreq_table, however,
the cpufreq code does not currently use clk_init_cpufreq_table. As a
result, it is unusuable for OMAP2 and only usable only on platforms
using OPP library.

Remove the unbalanced clk_exit_cpufreq_table().  Any platforms where
OPPs are not availble will fail on init because a freq table will not
be properly initialized.

Signed-off-by: Nishanth Menon <nm@ti.com>
[khilman@ti.com: changelog edits, and graceful failure mode changes]
Signed-off-by: Kevin Hilman <khilman@ti.com>
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/cpufreq/omap-cpufreq.c
1 1 /*
2   - * CPU frequency scaling for OMAP
  2 + * CPU frequency scaling for OMAP using OPP information
3 3 *
4 4 * Copyright (C) 2005 Nokia Corporation
5 5 * Written by Tony Lindgren <tony@atomide.com>
... ... @@ -199,7 +199,6 @@
199 199  
200 200 static int omap_cpu_exit(struct cpufreq_policy *policy)
201 201 {
202   - clk_exit_cpufreq_table(&freq_table);
203 202 clk_put(mpu_clk);
204 203 return 0;
205 204 }