aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberto Panizzo <maramaopercheseimorto@gmail.com>2010-11-01 18:00:03 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2010-11-02 08:49:40 +0100
commitf0573e6db1d1e637e20011f40264b2f5b5880587 (patch)
treee37207bff2b140e9a67b8a66dd5c134061c98edb
parentc8ddb2713c624f432fa5fe3c7ecffcdda46ea0d4 (diff)
downloadmrst-s0i3-test-f0573e6db1d1e637e20011f40264b2f5b5880587.tar.gz
mrst-s0i3-test-f0573e6db1d1e637e20011f40264b2f5b5880587.tar.xz
mrst-s0i3-test-f0573e6db1d1e637e20011f40264b2f5b5880587.zip
mach-pcm037_eet: Fix section mismatch for eet_init_devices()
This function should be marked as __init because it is used only in the init phase. This fix the compiler warning: LD arch/arm/mach-mx3/built-in.o WARNING: arch/arm/mach-mx3/built-in.o(.text+0x1328): Section mismatch in reference from the function eet_init_devices() to the (unknown reference) .init.rodata:(unknown) The function eet_init_devices() references the (unknown reference) __initconst (unknown). This is often because eet_init_devices lacks a __initconst annotation or the annotation of (unknown) is wrong. Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-mx3/mach-pcm037_eet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mx3/mach-pcm037_eet.c b/arch/arm/mach-mx3/mach-pcm037_eet.c
index 99e0894e07d..3392812a55f 100644
--- a/arch/arm/mach-mx3/mach-pcm037_eet.c
+++ b/arch/arm/mach-mx3/mach-pcm037_eet.c
@@ -171,7 +171,7 @@ static struct platform_device pcm037_gpio_keys_device = {
},
};
-static int eet_init_devices(void)
+static int __init eet_init_devices(void)
{
if (!machine_is_pcm037() || pcm037_variant() != PCM037_EET)
return 0;