Commit 206b039c authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jiri Slaby

cpufreq: s3c: remove incorrect __init annotations

commit 61882b63 upstream.

The two functions s3c2416_cpufreq_driver_init and s3c_cpufreq_register
are marked init but are called from a context that might be run after
the __init sections are discarded, as the compiler points out:

WARNING: vmlinux.o(.data+0x1ad9dc): Section mismatch in reference from the variable s3c2416_cpufreq_driver to the function .init.text:s3c2416_cpufreq_driver_init()
WARNING: drivers/built-in.o(.text+0x35b5dc): Section mismatch in reference from the function s3c2410a_cpufreq_add() to the function .init.text:s3c_cpufreq_register()

This removes the __init markings.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 442a1765
...@@ -295,7 +295,7 @@ static int s3c2416_cpufreq_set_target(struct cpufreq_policy *policy, ...@@ -295,7 +295,7 @@ static int s3c2416_cpufreq_set_target(struct cpufreq_policy *policy,
} }
#ifdef CONFIG_ARM_S3C2416_CPUFREQ_VCORESCALE #ifdef CONFIG_ARM_S3C2416_CPUFREQ_VCORESCALE
static void __init s3c2416_cpufreq_cfg_regulator(struct s3c2416_data *s3c_freq) static void s3c2416_cpufreq_cfg_regulator(struct s3c2416_data *s3c_freq)
{ {
int count, v, i, found; int count, v, i, found;
struct cpufreq_frequency_table *freq; struct cpufreq_frequency_table *freq;
...@@ -367,7 +367,7 @@ static struct notifier_block s3c2416_cpufreq_reboot_notifier = { ...@@ -367,7 +367,7 @@ static struct notifier_block s3c2416_cpufreq_reboot_notifier = {
.notifier_call = s3c2416_cpufreq_reboot_notifier_evt, .notifier_call = s3c2416_cpufreq_reboot_notifier_evt,
}; };
static int __init s3c2416_cpufreq_driver_init(struct cpufreq_policy *policy) static int s3c2416_cpufreq_driver_init(struct cpufreq_policy *policy)
{ {
struct s3c2416_data *s3c_freq = &s3c2416_cpufreq; struct s3c2416_data *s3c_freq = &s3c2416_cpufreq;
struct cpufreq_frequency_table *freq; struct cpufreq_frequency_table *freq;
......
...@@ -483,7 +483,7 @@ static struct cpufreq_driver s3c24xx_driver = { ...@@ -483,7 +483,7 @@ static struct cpufreq_driver s3c24xx_driver = {
}; };
int __init s3c_cpufreq_register(struct s3c_cpufreq_info *info) int s3c_cpufreq_register(struct s3c_cpufreq_info *info)
{ {
if (!info || !info->name) { if (!info || !info->name) {
printk(KERN_ERR "%s: failed to pass valid information\n", printk(KERN_ERR "%s: failed to pass valid information\n",
......
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