aboutsummaryrefslogtreecommitdiffstats
path: root/arch/openrisc
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-08-26 11:25:26 -0400
committerRob Herring <rob.herring@calxeda.com>2013-10-09 12:38:15 -0400
commite94353890aaae1ab81dcacb3cafb449432224d3f (patch)
treed2faed0d1eacabe8edeb48d260637b5dafab294b /arch/openrisc
parentf75813c0127bbef41ac3152f64a72ba212a5514c (diff)
openrisc: use early_init_dt_scan
Convert openrisc to use new early_init_dt_scan function. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Cc: Jonas Bonn <jonas@southpole.se> Cc: linux@lists.openrisc.net
Diffstat (limited to 'arch/openrisc')
-rw-r--r--arch/openrisc/kernel/prom.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/openrisc/kernel/prom.c b/arch/openrisc/kernel/prom.c
index 3b94972e52b2..fbed459ea365 100644
--- a/arch/openrisc/kernel/prom.c
+++ b/arch/openrisc/kernel/prom.c
@@ -55,20 +55,7 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
55 55
56void __init early_init_devtree(void *params) 56void __init early_init_devtree(void *params)
57{ 57{
58 /* Setup flat device-tree pointer */ 58 early_init_dt_scan(params);
59 initial_boot_params = params;
60
61
62 /* Retrieve various informations from the /chosen node of the
63 * device-tree, including the platform type, initrd location and
64 * size, TCE reserve, and more ...
65 */
66 of_scan_flat_dt(early_init_dt_scan_chosen, boot_command_line);
67
68 /* Scan memory nodes and rebuild MEMBLOCKs */
69 of_scan_flat_dt(early_init_dt_scan_root, NULL);
70 of_scan_flat_dt(early_init_dt_scan_memory, NULL);
71
72 memblock_allow_resize(); 59 memblock_allow_resize();
73} 60}
74 61