diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2014-09-10 11:10:54 +0530 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2014-10-13 14:46:13 +0530 |
commit | d7f8a085d4f48501b1fa253b48ec4ad7cb4d02cc (patch) | |
tree | 7c266b918c768bb632ef5a73d7d1bd5df20b8d70 /arch/arc/plat-arcfpga | |
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/plat-arcfpga')
-rw-r--r-- | arch/arc/plat-arcfpga/platform.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/arc/plat-arcfpga/platform.c b/arch/arc/plat-arcfpga/platform.c index 57bd24f6a4bd..b23d5fc59a48 100644 --- a/arch/arc/plat-arcfpga/platform.c +++ b/arch/arc/plat-arcfpga/platform.c @@ -14,7 +14,6 @@ #include <linux/platform_device.h> #include <linux/io.h> #include <linux/console.h> -#include <linux/of_platform.h> #include <asm/setup.h> #include <asm/clk.h> #include <asm/mach_desc.h> @@ -31,15 +30,6 @@ static void __init plat_fpga_early_init(void) #endif } -static void __init plat_fpga_populate_dev(void) -{ - /* - * Traverses flattened DeviceTree - registering platform devices - * (if any) complete with their resources - */ - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); -} - /*----------------------- Machine Descriptions ------------------------------ * * Machine description is simply a set of platform/board specific callbacks @@ -57,7 +47,6 @@ static const char *legacy_fpga_compat[] __initconst = { MACHINE_START(LEGACY_FPGA, "legacy_fpga") .dt_compat = legacy_fpga_compat, .init_early = plat_fpga_early_init, - .init_machine = plat_fpga_populate_dev, #ifdef CONFIG_ISS_SMP_EXTN .init_smp = iss_model_init_smp, #endif @@ -71,5 +60,4 @@ static const char *simulation_compat[] __initconst = { MACHINE_START(SIMULATION, "simulation") .dt_compat = simulation_compat, - .init_machine = plat_fpga_populate_dev, MACHINE_END |