diff options
author | Matthias Brugger <matthias.bgg@gmail.com> | 2013-12-05 10:59:57 +0100 |
---|---|---|
committer | Hans-Christian Egtvedt <hegtvedt@cisco.com> | 2013-12-10 08:46:38 +0100 |
commit | fa1513f60a370a38512ccad4da11548f236768c4 (patch) | |
tree | a017ead1c4164042d878c1f389404846e0dfcfeb /drivers/cpufreq/at32ap-cpufreq.c | |
parent | avr32: pm: Fix section mismatch (diff) | |
download | linux-fa1513f60a370a38512ccad4da11548f236768c4.tar.xz linux-fa1513f60a370a38512ccad4da11548f236768c4.zip |
cpufreq_ at32ap-cpufreq.c: Fix section mismatch
The function at32_cpufreq_driver_init was marked as __init but will be
called from inside the cpufreq framework. This lead to the following a
section mismatch during compilation:
WARNING: drivers/built-in.o(.data+0x2448): Section mismatch in reference
from the variable at32_driver to the function
.init.text:at32_cpufreq_driver_init()
The variable at32_driver references
the function __init at32_cpufreq_driver_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the
variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/cpufreq/at32ap-cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/at32ap-cpufreq.c b/drivers/cpufreq/at32ap-cpufreq.c index 856ad80418ae..7c03dd84f66a 100644 --- a/drivers/cpufreq/at32ap-cpufreq.c +++ b/drivers/cpufreq/at32ap-cpufreq.c @@ -58,7 +58,7 @@ static int at32_set_target(struct cpufreq_policy *policy, unsigned int index) return 0; } -static int __init at32_cpufreq_driver_init(struct cpufreq_policy *policy) +static int at32_cpufreq_driver_init(struct cpufreq_policy *policy) { unsigned int frequency, rate, min_freq; int retval, steps, i; |