c6x: use early_init_dt_scan
authorRob Herring <rob.herring@calxeda.com>
Mon, 26 Aug 2013 15:18:20 +0000 (10:18 -0500)
committerRob Herring <rob.herring@calxeda.com>
Wed, 9 Oct 2013 16:38:12 +0000 (11:38 -0500)
Convert c6x to use new early_init_dt_scan function.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Mark Salter <msalter@redhat.com>
Cc: Aurelien Jacquiot <a-jacquiot@ti.com>
Cc: linux-c6x-dev@linux-c6x.org
arch/c6x/kernel/devicetree.c
arch/c6x/kernel/setup.c

index 5e8c838c1dde40cef985f390350164d4552d5458..d28a92fc0c52622b0a0740c871f05ad02e05ceb8 100644 (file)
  *
  */
 #include <linux/init.h>
-#include <linux/of.h>
-#include <linux/of_fdt.h>
 #include <linux/initrd.h>
 #include <linux/memblock.h>
 
-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 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);
-}
-
-
 #ifdef CONFIG_BLK_DEV_INITRD
 void __init early_init_dt_setup_initrd_arch(u64 start, u64 end)
 {
index 0e5a812907d96d90d33f01aa9fe68e16a9e7edea..731db4b9014dfab53eb50083a9a82dbabc8541ef 100644 (file)
@@ -287,7 +287,7 @@ notrace void __init machine_init(unsigned long dt_ptr)
                fdt = dtb;
 
        /* Do some early initialization based on the flat device tree */
-       early_init_devtree(fdt);
+       early_init_dt_scan(fdt);
 
        parse_early_param();
 }