aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/cpufreq/maple-cpufreq.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c
index b3fb661b2b56..b23d1d8ab9cc 100644
--- a/drivers/cpufreq/maple-cpufreq.c
+++ b/drivers/cpufreq/maple-cpufreq.c
@@ -64,11 +64,6 @@ static struct cpufreq_frequency_table maple_cpu_freqs[] = {
64 {0, CPUFREQ_TABLE_END}, 64 {0, CPUFREQ_TABLE_END},
65}; 65};
66 66
67static struct freq_attr *maple_cpu_freqs_attr[] = {
68 &cpufreq_freq_attr_scaling_available_freqs,
69 NULL,
70};
71
72/* Power mode data is an array of the 32 bits PCR values to use for 67/* Power mode data is an array of the 32 bits PCR values to use for
73 * the various frequencies, retrieved from the device-tree 68 * the various frequencies, retrieved from the device-tree
74 */ 69 */
@@ -135,11 +130,6 @@ static int maple_scom_query_freq(void)
135 * Common interface to the cpufreq core 130 * Common interface to the cpufreq core
136 */ 131 */
137 132
138static int maple_cpufreq_verify(struct cpufreq_policy *policy)
139{
140 return cpufreq_frequency_table_verify(policy, maple_cpu_freqs);
141}
142
143static int maple_cpufreq_target(struct cpufreq_policy *policy, 133static int maple_cpufreq_target(struct cpufreq_policy *policy,
144 unsigned int target_freq, unsigned int relation) 134 unsigned int target_freq, unsigned int relation)
145{ 135{
@@ -190,10 +180,10 @@ static struct cpufreq_driver maple_cpufreq_driver = {
190 .name = "maple", 180 .name = "maple",
191 .flags = CPUFREQ_CONST_LOOPS, 181 .flags = CPUFREQ_CONST_LOOPS,
192 .init = maple_cpufreq_cpu_init, 182 .init = maple_cpufreq_cpu_init,
193 .verify = maple_cpufreq_verify, 183 .verify = cpufreq_generic_frequency_table_verify,
194 .target = maple_cpufreq_target, 184 .target = maple_cpufreq_target,
195 .get = maple_cpufreq_get_speed, 185 .get = maple_cpufreq_get_speed,
196 .attr = maple_cpu_freqs_attr, 186 .attr = cpufreq_generic_attr,
197}; 187};
198 188
199static int __init maple_cpufreq_init(void) 189static int __init maple_cpufreq_init(void)