]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq_ at32ap-cpufreq.c: Fix section mismatch
authorMatthias Brugger <matthias.bgg@gmail.com>
Thu, 5 Dec 2013 09:59:57 +0000 (10:59 +0100)
committerHans-Christian Egtvedt <hegtvedt@cisco.com>
Tue, 10 Dec 2013 07:46:38 +0000 (08:46 +0100)
commit6944d04fd15346dc93f0ccb4b674418e4e7b23e9
treea017ead1c4164042d878c1f389404846e0dfcfeb
parent8f1ef91ec71820d9e46f202e09bcc3b275c5021b
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>
drivers/cpufreq/at32ap-cpufreq.c