diff options
Diffstat (limited to 'arch/mips/lantiq/prom.c')
| -rw-r--r-- | arch/mips/lantiq/prom.c | 16 | 
1 files changed, 3 insertions, 13 deletions
diff --git a/arch/mips/lantiq/prom.c b/arch/mips/lantiq/prom.c index 49c46037028..7447d322d14 100644 --- a/arch/mips/lantiq/prom.c +++ b/arch/mips/lantiq/prom.c @@ -14,6 +14,7 @@  #include <asm/bootinfo.h>  #include <asm/time.h> +#include <asm/prom.h>  #include <lantiq.h> @@ -70,23 +71,12 @@ void __init plat_mem_setup(void)  	 * Load the builtin devicetree. This causes the chosen node to be  	 * parsed resulting in our memory appearing  	 */ -	__dt_setup_arch(&__dtb_start); +	__dt_setup_arch(__dtb_start);  }  void __init device_tree_init(void)  { -	unsigned long base, size; - -	if (!initial_boot_params) -		return; - -	base = virt_to_phys((void *)initial_boot_params); -	size = be32_to_cpu(initial_boot_params->totalsize); - -	/* Before we do anything, lets reserve the dt blob */ -	reserve_bootmem(base, size, BOOTMEM_DEFAULT); - -	unflatten_device_tree(); +	unflatten_and_copy_device_tree();  }  void __init prom_init(void)  | 
