of: create default early_init_dt_add_memory_arch
[deliverable/linux.git] / arch / openrisc / kernel / prom.c
index 3b94972e52b2069bb8761f18350a1f2a99176677..6dbcaa85421ce3d5c61806c30b586ab082b4ff84 100644 (file)
 #include <asm/sections.h>
 #include <asm/setup.h>
 
-void __init early_init_dt_add_memory_arch(u64 base, u64 size)
-{
-       size &= PAGE_MASK;
-       memblock_add(base, 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();
 }
 
This page took 0.026723 seconds and 5 git commands to generate.