Skip to content

Commit

Permalink
ARM: bcm: mark bcm_kona_smc_init as __init
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Christian Daudt <[email protected]>
  • Loading branch information
arndb committed Apr 23, 2013
1 parent 5724c52 commit 721e020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-bcm/bcm_kona_smc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static const struct of_device_id bcm_kona_smc_ids[] __initconst = {
};

/* Map in the bounce area */
void bcm_kona_smc_init(void)
void __init bcm_kona_smc_init(void)
{
struct device_node *node;

Expand Down

0 comments on commit 721e020

Please sign in to comment.