Commit 50e77fcd authored by Eric Miao's avatar Eric Miao

ARM: pxa: remove __init from cpufreq_driver->init()

This is causing section mismatches when linking, as cpufreq_driver->init()
is not supposed to be in init section.
Reported-by: default avatarTomáš 'Sleep_Walker' Čech <sleep_walker@suse.cz>
Signed-off-by: default avatarEric Miao <eric.y.miao@gmail.com>
parent 2bfc96a1
......@@ -398,7 +398,7 @@ static int pxa_set_target(struct cpufreq_policy *policy,
return 0;
}
static __init int pxa_cpufreq_init(struct cpufreq_policy *policy)
static int pxa_cpufreq_init(struct cpufreq_policy *policy)
{
int i;
unsigned int freq;
......
......@@ -204,7 +204,7 @@ static int pxa3xx_cpufreq_set(struct cpufreq_policy *policy,
return 0;
}
static __init int pxa3xx_cpufreq_init(struct cpufreq_policy *policy)
static int pxa3xx_cpufreq_init(struct cpufreq_policy *policy)
{
int ret = -EINVAL;
......
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