diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2014-09-10 01:40:54 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2014-10-13 05:16:13 -0400 |
commit | d7f8a085d4f48501b1fa253b48ec4ad7cb4d02cc (patch) | |
tree | 7c266b918c768bb632ef5a73d7d1bd5df20b8d70 /arch/arc/kernel | |
parent | 70e956483efd8a70e86fb2260dcd2395eb1affef (diff) |
ARC: [plat*] move code out of .init_machine into common
All the platforms do the same thing in init_machine callback so move it
out of callback into caller of callback
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel')
-rw-r--r-- | arch/arc/kernel/setup.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index da61f2205dc5..686e3fae4420 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c | |||
@@ -13,7 +13,9 @@ | |||
13 | #include <linux/console.h> | 13 | #include <linux/console.h> |
14 | #include <linux/module.h> | 14 | #include <linux/module.h> |
15 | #include <linux/cpu.h> | 15 | #include <linux/cpu.h> |
16 | #include <linux/clk-provider.h> | ||
16 | #include <linux/of_fdt.h> | 17 | #include <linux/of_fdt.h> |
18 | #include <linux/of_platform.h> | ||
17 | #include <linux/cache.h> | 19 | #include <linux/cache.h> |
18 | #include <asm/sections.h> | 20 | #include <asm/sections.h> |
19 | #include <asm/arcregs.h> | 21 | #include <asm/arcregs.h> |
@@ -379,7 +381,13 @@ void __init setup_arch(char **cmdline_p) | |||
379 | 381 | ||
380 | static int __init customize_machine(void) | 382 | static int __init customize_machine(void) |
381 | { | 383 | { |
382 | /* Add platform devices */ | 384 | of_clk_init(NULL); |
385 | /* | ||
386 | * Traverses flattened DeviceTree - registering platform devices | ||
387 | * (if any) complete with their resources | ||
388 | */ | ||
389 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
390 | |||
383 | if (machine_desc->init_machine) | 391 | if (machine_desc->init_machine) |
384 | machine_desc->init_machine(); | 392 | machine_desc->init_machine(); |
385 | 393 | ||