diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-07 11:45:50 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-13 11:00:38 +0100 |
commit | a98f77bb0a86914a39e3d0d001716965add5063e (patch) | |
tree | 581f59b50a97f78285a37df9a9102a14aeef2c81 /arch/arm/mach-omap2/mux.c | |
parent | ARM: omap: fix section mismatch error for omap_4430sdp_display_init() (diff) | |
download | linux-a98f77bb0a86914a39e3d0d001716965add5063e.tar.xz linux-a98f77bb0a86914a39e3d0d001716965add5063e.zip |
ARM: omap: fix section mismatch warning for sdp3430_twl_gpio_setup()
WARNING: arch/arm/mach-omap2/built-in.o(.text+0xd0f0): Section mismatch in reference from the function sdp3430_twl_gpio_setup() to the function .init.text:omap2_hsmmc_init()
The function sdp3430_twl_gpio_setup() references
the function __init omap2_hsmmc_init().
This is often because sdp3430_twl_gpio_setup lacks a __init
annotation or the annotation of omap2_hsmmc_init is wrong.
sdp3430_twl_gpio_setup() is called via platform data from the
gpio-twl4030 module, which can be inserted and removed at runtime.
This makes sdp3430_twl_gpio_setup() callable at runtime, and prevents
it being marked with an __init annotation.
As it calls omap2_hsmmc_init() unconditionally, the only resolution to
this warning is to remove the __init markings from omap2_hsmmc_init()
and its called functions. This addresses the functions in hsmmc.c.
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/mux.c')
0 files changed, 0 insertions, 0 deletions