Commit 790ab7e9 authored by Ming Lei's avatar Ming Lei Committed by Tony Lindgren

arm: omap: fix section mismatch warning

WARNING: arch/arm/plat-omap/built-in.o(.data+0x6d4): Section mismatch in reference from the variable omap_driver to the function .init.text:omap_cpu_init()
The variable omap_driver references
the function __init omap_cpu_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: default avatarMing Lei <tom.leiming@gmail.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent dd9c1549
...@@ -101,7 +101,7 @@ static int omap_target(struct cpufreq_policy *policy, ...@@ -101,7 +101,7 @@ static int omap_target(struct cpufreq_policy *policy,
return ret; return ret;
} }
static int __init omap_cpu_init(struct cpufreq_policy *policy) static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy)
{ {
int result = 0; int result = 0;
......
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