Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kefeng Wang and committed by
Rob Herring
2b658932 623e9ef6

-14
-14
arch/sh/boards/of-generic.c
··· 9 9 */ 10 10 11 11 #include <linux/of.h> 12 - #include <linux/of_platform.h> 13 12 #include <linux/of_fdt.h> 14 13 #include <linux/clocksource.h> 15 14 #include <linux/irqchip.h> ··· 178 179 void __init plat_irq_setup(void) 179 180 { 180 181 } 181 - 182 - static int __init sh_of_device_init(void) 183 - { 184 - pr_info("SH generic board support: populating platform devices\n"); 185 - if (of_have_populated_dt()) { 186 - of_platform_populate(NULL, of_default_bus_match_table, 187 - NULL, NULL); 188 - } else { 189 - pr_crit("Device tree not populated\n"); 190 - } 191 - return 0; 192 - } 193 - arch_initcall_sync(sh_of_device_init);