Commit 674a4f2e authored by Dave Jones's avatar Dave Jones

[CPUFREQ] convert elanfreq MODULE_PARM to module_param

                                                                                                                                                                    
Convert elanfreq's MODULE_PARM to module_param, and warn users that the setup parameter
"elanfreq" will go away in favor of "elanfreq.max_freq".
Signed-off-by: default avatarDominik Brodowski <linux@brodo.de>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 861745d1
......@@ -254,6 +254,7 @@ static int elanfreq_cpu_exit(struct cpufreq_policy *policy)
static int __init elanfreq_setup(char *str)
{
max_freq = simple_strtoul(str, &str, 0);
printk(KERN_WARNING "You're using the deprecated elanfreq command line option. Use elanfreq.max_freq instead, please!\n");
return 1;
}
__setup("elanfreq=", elanfreq_setup);
......@@ -300,7 +301,7 @@ static void __exit elanfreq_exit(void)
}
MODULE_PARM (max_freq, "i");
module_param (max_freq, int, 0444);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Robert Schwebel <r.schwebel@pengutronix.de>, Sven Geggus <sven@geggus.net>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment