aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/plat-arcfpga/platform.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2014-09-10 01:40:54 -0400
committerVineet Gupta <vgupta@synopsys.com>2014-10-13 05:16:13 -0400
commitd7f8a085d4f48501b1fa253b48ec4ad7cb4d02cc (patch)
tree7c266b918c768bb632ef5a73d7d1bd5df20b8d70 /arch/arc/plat-arcfpga/platform.c
parent70e956483efd8a70e86fb2260dcd2395eb1affef (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/platform.c')
-rw-r--r--arch/arc/plat-arcfpga/platform.c12
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 @@
14#include <linux/platform_device.h> 14#include <linux/platform_device.h>
15#include <linux/io.h> 15#include <linux/io.h>
16#include <linux/console.h> 16#include <linux/console.h>
17#include <linux/of_platform.h>
18#include <asm/setup.h> 17#include <asm/setup.h>
19#include <asm/clk.h> 18#include <asm/clk.h>
20#include <asm/mach_desc.h> 19#include <asm/mach_desc.h>
@@ -31,15 +30,6 @@ static void __init plat_fpga_early_init(void)
31#endif 30#endif
32} 31}
33 32
34static void __init plat_fpga_populate_dev(void)
35{
36 /*
37 * Traverses flattened DeviceTree - registering platform devices
38 * (if any) complete with their resources
39 */
40 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
41}
42
43/*----------------------- Machine Descriptions ------------------------------ 33/*----------------------- Machine Descriptions ------------------------------
44 * 34 *
45 * Machine description is simply a set of platform/board specific callbacks 35 * Machine description is simply a set of platform/board specific callbacks
@@ -57,7 +47,6 @@ static const char *legacy_fpga_compat[] __initconst = {
57MACHINE_START(LEGACY_FPGA, "legacy_fpga") 47MACHINE_START(LEGACY_FPGA, "legacy_fpga")
58 .dt_compat = legacy_fpga_compat, 48 .dt_compat = legacy_fpga_compat,
59 .init_early = plat_fpga_early_init, 49 .init_early = plat_fpga_early_init,
60 .init_machine = plat_fpga_populate_dev,
61#ifdef CONFIG_ISS_SMP_EXTN 50#ifdef CONFIG_ISS_SMP_EXTN
62 .init_smp = iss_model_init_smp, 51 .init_smp = iss_model_init_smp,
63#endif 52#endif
@@ -71,5 +60,4 @@ static const char *simulation_compat[] __initconst = {
71 60
72MACHINE_START(SIMULATION, "simulation") 61MACHINE_START(SIMULATION, "simulation")
73 .dt_compat = simulation_compat, 62 .dt_compat = simulation_compat,
74 .init_machine = plat_fpga_populate_dev,
75MACHINE_END 63MACHINE_END