diff options
author | Alberto Panizzo <maramaopercheseimorto@gmail.com> | 2010-11-01 13:00:03 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-17 04:01:29 -0500 |
commit | c194daad0e0de94ed5e03aa723eb56b4a3ae9738 (patch) | |
tree | b86d489aa32f59b0c5aa00be18553cae6759268f /arch | |
parent | bf182bcc6e726cce2f02b699bd0fba787734554f (diff) |
ARM: mx3/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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx3/mach-pcm037_eet.c | 2 |
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 99e0894e07db..3392812a55f7 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 = { | |||
171 | }, | 171 | }, |
172 | }; | 172 | }; |
173 | 173 | ||
174 | static int eet_init_devices(void) | 174 | static int __init eet_init_devices(void) |
175 | { | 175 | { |
176 | if (!machine_is_pcm037() || pcm037_variant() != PCM037_EET) | 176 | if (!machine_is_pcm037() || pcm037_variant() != PCM037_EET) |
177 | return 0; | 177 | return 0; |