From: Rob Herring Date: Mon, 31 Mar 2014 20:09:34 +0000 (-0500) Subject: c6x: convert fdt pointers to opaque pointers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=01984a6f99cf1463a89592eff6e57af898743022;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-dev@linux-c6x.org Tested-by: Grant Likely --- 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);