aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcm
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2013-04-23 10:06:40 -0400
committerArnd Bergmann <arnd@arndb.de>2013-04-23 11:43:32 -0400
commit721e0205b07589223343737a9c421d8118d87bba (patch)
tree0bb16e9835736349cedba63f6d2006726af11045 /arch/arm/mach-bcm
parent5724c52fbef16f17af3b92c6cae4fda391beb84c (diff)
ARM: bcm: mark bcm_kona_smc_init as __init
The bcm_kona_smc_init function references the bcm_kona_smc_ids variable that is marked __initconst, so the function itself has to be __init to avoid this build error: WARNING: arch/arm/mach-bcm/built-in.o(.text+0x12c): Section mismatch in reference from the function bcm_kona_smc_init() to the (unknown reference) .init.rodata:(unknown) Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Christian Daudt <csd@broadcom.com>
Diffstat (limited to 'arch/arm/mach-bcm')
-rw-r--r--arch/arm/mach-bcm/bcm_kona_smc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-bcm/bcm_kona_smc.c b/arch/arm/mach-bcm/bcm_kona_smc.c
index 5f1d13175138..56d9d19b2470 100644
--- a/arch/arm/mach-bcm/bcm_kona_smc.c
+++ b/arch/arm/mach-bcm/bcm_kona_smc.c
@@ -41,7 +41,7 @@ static const struct of_device_id bcm_kona_smc_ids[] __initconst = {
41}; 41};
42 42
43/* Map in the bounce area */ 43/* Map in the bounce area */
44void bcm_kona_smc_init(void) 44void __init bcm_kona_smc_init(void)
45{ 45{
46 struct device_node *node; 46 struct device_node *node;
47 47