Commit 721e0205 authored by Arnd Bergmann's avatar Arnd Bergmann

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: default avatarArnd Bergmann <arnd@arndb.de>
Cc: Christian Daudt <csd@broadcom.com>
parent 5724c52f
...@@ -41,7 +41,7 @@ static const struct of_device_id bcm_kona_smc_ids[] __initconst = { ...@@ -41,7 +41,7 @@ static const struct of_device_id bcm_kona_smc_ids[] __initconst = {
}; };
/* Map in the bounce area */ /* Map in the bounce area */
void bcm_kona_smc_init(void) void __init bcm_kona_smc_init(void)
{ {
struct device_node *node; struct device_node *node;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment