diff options
-rw-r--r-- | arch/sh/boards/of-generic.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c index b4d4313af6f1..911ffb9f115b 100644 --- a/arch/sh/boards/of-generic.c +++ b/arch/sh/boards/of-generic.c | |||
@@ -9,7 +9,6 @@ | |||
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/of.h> | 11 | #include <linux/of.h> |
12 | #include <linux/of_platform.h> | ||
13 | #include <linux/of_fdt.h> | 12 | #include <linux/of_fdt.h> |
14 | #include <linux/clocksource.h> | 13 | #include <linux/clocksource.h> |
15 | #include <linux/irqchip.h> | 14 | #include <linux/irqchip.h> |
@@ -179,16 +178,3 @@ void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) | |||
179 | void __init plat_irq_setup(void) | 178 | void __init plat_irq_setup(void) |
180 | { | 179 | { |
181 | } | 180 | } |
182 | |||
183 | static int __init sh_of_device_init(void) | ||
184 | { | ||
185 | pr_info("SH generic board support: populating platform devices\n"); | ||
186 | if (of_have_populated_dt()) { | ||
187 | of_platform_populate(NULL, of_default_bus_match_table, | ||
188 | NULL, NULL); | ||
189 | } else { | ||
190 | pr_crit("Device tree not populated\n"); | ||
191 | } | ||
192 | return 0; | ||
193 | } | ||
194 | arch_initcall_sync(sh_of_device_init); | ||