diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-08-26 11:18:20 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-10-09 12:38:12 -0400 |
commit | a8e44636c66d90d177fcdf8e8cfc36747074a4ed (patch) | |
tree | cb1443d79770d297d33be36a49d50236b213d445 | |
parent | d5189cc57b1d231b6dc745de6b68881901d0c5c4 (diff) |
c6x: use early_init_dt_scan
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
-rw-r--r-- | arch/c6x/kernel/devicetree.c | 19 | ||||
-rw-r--r-- | arch/c6x/kernel/setup.c | 2 |
2 files changed, 1 insertions, 20 deletions
diff --git a/arch/c6x/kernel/devicetree.c b/arch/c6x/kernel/devicetree.c index 5e8c838c1dde..d28a92fc0c52 100644 --- a/arch/c6x/kernel/devicetree.c +++ b/arch/c6x/kernel/devicetree.c | |||
@@ -10,28 +10,9 @@ | |||
10 | * | 10 | * |
11 | */ | 11 | */ |
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/of.h> | ||
14 | #include <linux/of_fdt.h> | ||
15 | #include <linux/initrd.h> | 13 | #include <linux/initrd.h> |
16 | #include <linux/memblock.h> | 14 | #include <linux/memblock.h> |
17 | 15 | ||
18 | void __init early_init_devtree(void *params) | ||
19 | { | ||
20 | /* Setup flat device-tree pointer */ | ||
21 | initial_boot_params = params; | ||
22 | |||
23 | /* Retrieve various informations from the /chosen node of the | ||
24 | * device-tree, including the platform type, initrd location and | ||
25 | * size and more ... | ||
26 | */ | ||
27 | of_scan_flat_dt(early_init_dt_scan_chosen, boot_command_line); | ||
28 | |||
29 | /* Scan memory nodes and rebuild MEMBLOCKs */ | ||
30 | of_scan_flat_dt(early_init_dt_scan_root, NULL); | ||
31 | of_scan_flat_dt(early_init_dt_scan_memory, NULL); | ||
32 | } | ||
33 | |||
34 | |||
35 | #ifdef CONFIG_BLK_DEV_INITRD | 16 | #ifdef CONFIG_BLK_DEV_INITRD |
36 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) | 17 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
37 | { | 18 | { |
diff --git a/arch/c6x/kernel/setup.c b/arch/c6x/kernel/setup.c index 0e5a812907d9..731db4b9014d 100644 --- a/arch/c6x/kernel/setup.c +++ b/arch/c6x/kernel/setup.c | |||
@@ -287,7 +287,7 @@ notrace void __init machine_init(unsigned long dt_ptr) | |||
287 | fdt = dtb; | 287 | fdt = dtb; |
288 | 288 | ||
289 | /* Do some early initialization based on the flat device tree */ | 289 | /* Do some early initialization based on the flat device tree */ |
290 | early_init_devtree(fdt); | 290 | early_init_dt_scan(fdt); |
291 | 291 | ||
292 | parse_early_param(); | 292 | parse_early_param(); |
293 | } | 293 | } |