aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/of-generic.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2016-06-01 02:53:03 -0400
committerRob Herring <robh@kernel.org>2016-06-23 16:00:34 -0400
commit2b658932356c54155dfec227316eaf81b3f17d83 (patch)
tree9985c9e6ced5b85e9d81e15bea2fa9edff3d084d /arch/sh/boards/of-generic.c
parent623e9ef636726280635d7bcc8f6b71794d05a57e (diff)
sh: Remove unnecessary of_platform_populate with default match table
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/sh/boards/of-generic.c')
-rw-r--r--arch/sh/boards/of-generic.c14
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)
179void __init plat_irq_setup(void) 178void __init plat_irq_setup(void)
180{ 179{
181} 180}
182
183static 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}
194arch_initcall_sync(sh_of_device_init);