summaryrefslogtreecommitdiffstats
path: root/arch/c6x/kernel/setup.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2014-03-31 15:09:34 -0500
committerRob Herring <robh@kernel.org>2014-04-30 00:59:12 -0500
commit01984a6f99cf1463a89592eff6e57af898743022 (patch)
treedac898ee97b74e65d8b0b133962f18ff5173e56f /arch/c6x/kernel/setup.c
parent1f809b4b1221f35cd2995b5605c006a8903c340c (diff)
downloadtalos-obmc-linux-01984a6f99cf1463a89592eff6e57af898743022.tar.gz
talos-obmc-linux-01984a6f99cf1463a89592eff6e57af898743022.zip
c6x: convert fdt pointers to opaque pointers
The architecture code does not need to access the internals of the FDT blob, so make the pointer to it void *. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Mark Salter <msalter@redhat.com> Cc: Aurelien Jacquiot <a-jacquiot@ti.com> Cc: linux-c6x-dev@linux-c6x.org Tested-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'arch/c6x/kernel/setup.c')
-rw-r--r--arch/c6x/kernel/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/c6x/kernel/setup.c b/arch/c6x/kernel/setup.c
index 731db4b9014d..757128868d43 100644
--- a/arch/c6x/kernel/setup.c
+++ b/arch/c6x/kernel/setup.c
@@ -265,8 +265,8 @@ int __init c6x_add_memory(phys_addr_t start, unsigned long size)
*/
notrace void __init machine_init(unsigned long dt_ptr)
{
- struct boot_param_header *dtb = __va(dt_ptr);
- struct boot_param_header *fdt = (struct boot_param_header *)_fdt_start;
+ const void *dtb = __va(dt_ptr);
+ const void *fdt = _fdt_start;
/* interrupts must be masked */
set_creg(IER, 2);
OpenPOWER on IntegriCloud