diff options
Diffstat (limited to 'drivers/cpufreq/ppc_cbe_cpufreq.c')
-rw-r--r-- | drivers/cpufreq/ppc_cbe_cpufreq.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/cpufreq/ppc_cbe_cpufreq.c b/drivers/cpufreq/ppc_cbe_cpufreq.c index 38540d1f5939..52f707d5f458 100644 --- a/drivers/cpufreq/ppc_cbe_cpufreq.c +++ b/drivers/cpufreq/ppc_cbe_cpufreq.c | |||
@@ -129,18 +129,10 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
129 | } | 129 | } |
130 | 130 | ||
131 | static int cbe_cpufreq_target(struct cpufreq_policy *policy, | 131 | static int cbe_cpufreq_target(struct cpufreq_policy *policy, |
132 | unsigned int target_freq, | 132 | unsigned int cbe_pmode_new) |
133 | unsigned int relation) | ||
134 | { | 133 | { |
135 | int rc; | 134 | int rc; |
136 | struct cpufreq_freqs freqs; | 135 | struct cpufreq_freqs freqs; |
137 | unsigned int cbe_pmode_new; | ||
138 | |||
139 | cpufreq_frequency_table_target(policy, | ||
140 | cbe_freqs, | ||
141 | target_freq, | ||
142 | relation, | ||
143 | &cbe_pmode_new); | ||
144 | 136 | ||
145 | freqs.old = policy->cur; | 137 | freqs.old = policy->cur; |
146 | freqs.new = cbe_freqs[cbe_pmode_new].frequency; | 138 | freqs.new = cbe_freqs[cbe_pmode_new].frequency; |
@@ -164,7 +156,7 @@ static int cbe_cpufreq_target(struct cpufreq_policy *policy, | |||
164 | 156 | ||
165 | static struct cpufreq_driver cbe_cpufreq_driver = { | 157 | static struct cpufreq_driver cbe_cpufreq_driver = { |
166 | .verify = cpufreq_generic_frequency_table_verify, | 158 | .verify = cpufreq_generic_frequency_table_verify, |
167 | .target = cbe_cpufreq_target, | 159 | .target_index = cbe_cpufreq_target, |
168 | .init = cbe_cpufreq_cpu_init, | 160 | .init = cbe_cpufreq_cpu_init, |
169 | .exit = cpufreq_generic_exit, | 161 | .exit = cpufreq_generic_exit, |
170 | .name = "cbe-cpufreq", | 162 | .name = "cbe-cpufreq", |