Revert "[CPUFREQ] constify cpufreq_driver where possible."
This reverts commit aeeddc1435
, 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>
This commit is contained in:
@ -225,8 +225,8 @@ struct cpufreq_driver {
|
||||
#define CPUFREQ_PM_NO_WARN 0x04 /* don't warn on suspend/resume speed
|
||||
* mismatches */
|
||||
|
||||
int cpufreq_register_driver(const struct cpufreq_driver *driver_data);
|
||||
int cpufreq_unregister_driver(const struct cpufreq_driver *driver_data);
|
||||
int cpufreq_register_driver(struct cpufreq_driver *driver_data);
|
||||
int cpufreq_unregister_driver(struct cpufreq_driver *driver_data);
|
||||
|
||||
|
||||
void cpufreq_notify_transition(struct cpufreq_freqs *freqs, unsigned int state);
|
||||
|
Reference in New Issue
Block a user