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:
Linus Torvalds
2007-02-26 14:55:48 -08:00
parent 6f8c480f99
commit 221dee285e
14 changed files with 17 additions and 17 deletions

View File

@ -1752,7 +1752,7 @@ static struct notifier_block __cpuinitdata cpufreq_cpu_notifier =
* (and isn't unregistered in the meantime).
*
*/
int cpufreq_register_driver(const struct cpufreq_driver *driver_data)
int cpufreq_register_driver(struct cpufreq_driver *driver_data)
{
unsigned long flags;
int ret;
@ -1817,7 +1817,7 @@ EXPORT_SYMBOL_GPL(cpufreq_register_driver);
* Returns zero if successful, and -EINVAL if the cpufreq_driver is
* currently not initialised.
*/
int cpufreq_unregister_driver(const struct cpufreq_driver *driver)
int cpufreq_unregister_driver(struct cpufreq_driver *driver)
{
unsigned long flags;