openrisc: use early_init_dt_scan
authorRob Herring <rob.herring@calxeda.com>
Mon, 26 Aug 2013 15:25:26 +0000 (10:25 -0500)
committerRob Herring <rob.herring@calxeda.com>
Wed, 9 Oct 2013 16:38:15 +0000 (11:38 -0500)
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
arch/openrisc/kernel/prom.c

index 3b94972e52b2069bb8761f18350a1f2a99176677..fbed459ea36547af8b1a8223d06c5a3277b6f383 100644 (file)
@@ -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();
 }