Skip to content

Commit

Permalink
mach-pcm037_eet: Fix section mismatch for eet_init_devices()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alberto Panizzo authored and Sascha Hauer committed Nov 2, 2010
1 parent c8ddb27 commit f0573e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-mx3/mach-pcm037_eet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f0573e6

Please sign in to comment.