Skip to content

Commit

Permalink
arm: omap: fix section mismatch warning
Browse files Browse the repository at this point in the history
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: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Ming Lei authored and Tony Lindgren committed Mar 3, 2011
1 parent dd9c154 commit 790ab7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-omap/cpu-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static int omap_target(struct cpufreq_policy *policy,
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;

Expand Down

0 comments on commit 790ab7e

Please sign in to comment.