diff options
| author | Stephen Warren <swarren@nvidia.com> | 2013-06-21 18:39:07 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-06-25 14:16:15 -0400 |
| commit | 1d54e0895bb413d6151a01fdb6d58d93d888198a (patch) | |
| tree | 9e31b6c465694d63db0ee3717c59ca66d94f3219 | |
| parent | a6f9061408950a7e024a6403aff3f90bae6bc5f3 (diff) | |
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>
| -rw-r--r-- | arch/arm/mach-tegra/pmc.c | 2 |
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 = { | |||
| 234 | { } | 234 | { } |
| 235 | }; | 235 | }; |
| 236 | 236 | ||
| 237 | static void tegra_pmc_parse_dt(void) | 237 | static void __init tegra_pmc_parse_dt(void) |
| 238 | { | 238 | { |
| 239 | struct device_node *np; | 239 | struct device_node *np; |
| 240 | u32 prop; | 240 | u32 prop; |
