summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/pmc.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-06-22 00:39:07 +0200
committerOlof Johansson <olof@lixom.net>2013-06-25 20:16:15 +0200
commit1d54e0895bb413d6151a01fdb6d58d93d888198a (patch)
tree9e31b6c465694d63db0ee3717c59ca66d94f3219 /arch/arm/mach-tegra/pmc.c
parentMerge tag 'fixes-non-3.11-2' of git://git.infradead.org/users/jcooper/linux i... (diff)
downloadlinux-1d54e0895bb413d6151a01fdb6d58d93d888198a.tar.xz
linux-1d54e0895bb413d6151a01fdb6d58d93d888198a.zip
ARM: tegra: fix section mismatch in tegra_pmc_parse_dt
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>
Diffstat (limited to 'arch/arm/mach-tegra/pmc.c')
-rw-r--r--arch/arm/mach-tegra/pmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/pmc.c b/arch/arm/mach-tegra/pmc.c
index 32360e540ce6..eb3fa4aee0e4 100644
--- a/arch/arm/mach-tegra/pmc.c
+++ b/arch/arm/mach-tegra/pmc.c
@@ -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;