aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mti-sead3
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2014-03-31 16:13:07 -0400
committerRob Herring <robh@kernel.org>2014-04-30 01:59:13 -0400
commit0cdde839265d5f258b36b871b083324f62c1fbb9 (patch)
treebac63daf0535676f41f0d1d6744872be1b2f499a /arch/mips/mti-sead3
parent01984a6f99cf1463a89592eff6e57af898743022 (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/mti-sead3')
-rw-r--r--arch/mips/mti-sead3/sead3-setup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/mti-sead3/sead3-setup.c b/arch/mips/mti-sead3/sead3-setup.c
index bf7fe48bf2f9..e43f4801a245 100644
--- a/arch/mips/mti-sead3/sead3-setup.c
+++ b/arch/mips/mti-sead3/sead3-setup.c
@@ -69,17 +69,17 @@ static void __init parse_memsize_param(void)
69 if (!memsize) 69 if (!memsize)
70 return; 70 return;
71 71
72 offset = fdt_path_offset(&__dtb_start, "/memory"); 72 offset = fdt_path_offset(__dtb_start, "/memory");
73 if (offset > 0) { 73 if (offset > 0) {
74 uint64_t new_value; 74 uint64_t new_value;
75 /* 75 /*
76 * reg contains 2 32-bits BE values, offset and size. We just 76 * reg contains 2 32-bits BE values, offset and size. We just
77 * want to replace the size value without affecting the offset 77 * want to replace the size value without affecting the offset
78 */ 78 */
79 prop_value = fdt_getprop(&__dtb_start, offset, "reg", &prop_len); 79 prop_value = fdt_getprop(__dtb_start, offset, "reg", &prop_len);
80 new_value = be64_to_cpu(*prop_value); 80 new_value = be64_to_cpu(*prop_value);
81 new_value = (new_value & ~0xffffffffllu) | memsize; 81 new_value = (new_value & ~0xffffffffllu) | memsize;
82 fdt_setprop_inplace_u64(&__dtb_start, offset, "reg", new_value); 82 fdt_setprop_inplace_u64(__dtb_start, offset, "reg", new_value);
83 } 83 }
84} 84}
85 85
@@ -92,7 +92,7 @@ void __init plat_mem_setup(void)
92 * Load the builtin devicetree. This causes the chosen node to be 92 * Load the builtin devicetree. This causes the chosen node to be
93 * parsed resulting in our memory appearing 93 * parsed resulting in our memory appearing
94 */ 94 */
95 __dt_setup_arch(&__dtb_start); 95 __dt_setup_arch(__dtb_start);
96} 96}
97 97
98void __init device_tree_init(void) 98void __init device_tree_init(void)