Skip to content

Commit

Permalink
ARM: tegra: fix section mismatch in tegra_pmc_parse_dt
Browse files Browse the repository at this point in the history
tegra_pmc_parse_dt() references __initconst data. Fix it to be __init.
This matches its only usage; a call from tegra_pmc_init() which is
already __init. This fixes:

WARNING: vmlinux.o(.text.unlikely+0x580): Section mismatch in reference
from the function tegra_pmc_parse_dt() to the (unknown reference)
.init.rodata:(unknown)

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Stephen Warren authored and Olof Johansson committed Jun 25, 2013
1 parent a6f9061 commit 1d54e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-tegra/pmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ static const struct of_device_id matches[] __initconst = {
{ }
};

static void tegra_pmc_parse_dt(void)
static void __init tegra_pmc_parse_dt(void)
{
struct device_node *np;
u32 prop;
Expand Down

0 comments on commit 1d54e08

Please sign in to comment.