aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-26 17:55:48 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-26 17:55:48 -0500
commit221dee285ee38099b82437531bcae9fa9cb64cc4 (patch)
tree1f91186091f0256e04c210a8ac76023cdeebf202 /include
parent6f8c480f998a619082f18407f8d7f4c29e94dc6e (diff)
Revert "[CPUFREQ] constify cpufreq_driver where possible."
This reverts commit aeeddc1435c37fa3fc844f31d39c185b08de4158, which was half-baked and broken. It just resulted in compile errors, since cpufreq_register_driver() still changes the 'driver_data' by setting bits in the flags field. So claiming it is 'const' _really_ doesn't work. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cpufreq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index 3a25235d79da..0899e2cdcdd1 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -225,8 +225,8 @@ struct cpufreq_driver {
225#define CPUFREQ_PM_NO_WARN 0x04 /* don't warn on suspend/resume speed 225#define CPUFREQ_PM_NO_WARN 0x04 /* don't warn on suspend/resume speed
226 * mismatches */ 226 * mismatches */
227 227
228int cpufreq_register_driver(const struct cpufreq_driver *driver_data); 228int cpufreq_register_driver(struct cpufreq_driver *driver_data);
229int cpufreq_unregister_driver(const struct cpufreq_driver *driver_data); 229int cpufreq_unregister_driver(struct cpufreq_driver *driver_data);
230 230
231 231
232void cpufreq_notify_transition(struct cpufreq_freqs *freqs, unsigned int state); 232void cpufreq_notify_transition(struct cpufreq_freqs *freqs, unsigned int state);