diff options
author | Rob Herring <robh@kernel.org> | 2014-03-31 16:13:07 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2014-04-30 01:59:13 -0400 |
commit | 0cdde839265d5f258b36b871b083324f62c1fbb9 (patch) | |
tree | bac63daf0535676f41f0d1d6744872be1b2f499a /arch/mips/ralink | |
parent | 01984a6f99cf1463a89592eff6e57af898743022 (diff) |
mips: convert fdt pointers to opaque pointers
The architecture code does not need to access the internals of the FDT
blob directly, so make the pointers to it void * and use char arrays
for section variables.
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Tested-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'arch/mips/ralink')
-rw-r--r-- | arch/mips/ralink/of.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c index 0170d829d073..91d7060d5aea 100644 --- a/arch/mips/ralink/of.c +++ b/arch/mips/ralink/of.c | |||
@@ -28,7 +28,7 @@ | |||
28 | __iomem void *rt_sysc_membase; | 28 | __iomem void *rt_sysc_membase; |
29 | __iomem void *rt_memc_membase; | 29 | __iomem void *rt_memc_membase; |
30 | 30 | ||
31 | extern struct boot_param_header __dtb_start; | 31 | extern char __dtb_start[]; |
32 | 32 | ||
33 | __iomem void *plat_of_remap_node(const char *node) | 33 | __iomem void *plat_of_remap_node(const char *node) |
34 | { | 34 | { |
@@ -63,7 +63,7 @@ void __init plat_mem_setup(void) | |||
63 | * Load the builtin devicetree. This causes the chosen node to be | 63 | * Load the builtin devicetree. This causes the chosen node to be |
64 | * parsed resulting in our memory appearing | 64 | * parsed resulting in our memory appearing |
65 | */ | 65 | */ |
66 | __dt_setup_arch(&__dtb_start); | 66 | __dt_setup_arch(__dtb_start); |
67 | 67 | ||
68 | if (soc_info.mem_size) | 68 | if (soc_info.mem_size) |
69 | add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M, | 69 | add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M, |