Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9435389 authored by Rob Herring's avatar Rob Herring
Browse files

openrisc: use early_init_dt_scan



Convert openrisc to use new early_init_dt_scan function.

Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: linux@lists.openrisc.net
parent f75813c0
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -55,20 +55,7 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)

void __init early_init_devtree(void *params)
{
	/* Setup flat device-tree pointer */
	initial_boot_params = params;


	/* Retrieve various informations from the /chosen node of the
	 * device-tree, including the platform type, initrd location and
	 * size, TCE reserve, and more ...
	 */
	of_scan_flat_dt(early_init_dt_scan_chosen, boot_command_line);

	/* Scan memory nodes and rebuild MEMBLOCKs */
	of_scan_flat_dt(early_init_dt_scan_root, NULL);
	of_scan_flat_dt(early_init_dt_scan_memory, NULL);

	early_init_dt_scan(params);
	memblock_allow_resize();
}