ARM: tegra: fix section mismatch in tegra_pmc_parse_dt
authorStephen Warren <swarren@nvidia.com>
Fri, 21 Jun 2013 22:39:07 +0000 (16:39 -0600)
committerOlof Johansson <olof@lixom.net>
Tue, 25 Jun 2013 18:16:15 +0000 (11:16 -0700)
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>
arch/arm/mach-tegra/pmc.c

index 32360e540ce6a8536c41d94577ab21b6d2674693..eb3fa4aee0e44c82a411ba20ca71516f4d8a2f31 100644 (file)
@@ -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;
This page took 0.045237 seconds and 5 git commands to generate.