diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2016-06-01 02:52:56 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2016-06-23 15:58:37 -0400 |
commit | 850bea2335e42780a0752a75860d3fbcc3d12d6e (patch) | |
tree | ee81a7df0331c86e5dfff8d0c65acf6a59b9f7a4 /arch/arm/kernel/setup.c | |
parent | 61c78644e7f1bd9445b3d7ddc3d35989a38985ee (diff) |
arm: 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.
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Ray Jui <rjui@broadcom.com>
Cc: Lee Jones <lee@kernel.org>
Cc: Krzysztof Halasa <khalasa@piap.pl>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Santosh Shilimkar <ssantosh@kernel.org>
Cc: Roland Stigge <stigge@antcom.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Viresh Kumar <vireshk@kernel.org>
Cc: Shiraz Hashim <shiraz.linux.kernel@gmail.com>
Cc: Tony Prisk <linux@prisktech.co.nz>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/arm/kernel/setup.c')
-rw-r--r-- | arch/arm/kernel/setup.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 7e455339789b..2273acb9ebf6 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -904,11 +904,7 @@ static int __init customize_machine(void) | |||
904 | */ | 904 | */ |
905 | if (machine_desc->init_machine) | 905 | if (machine_desc->init_machine) |
906 | machine_desc->init_machine(); | 906 | machine_desc->init_machine(); |
907 | #ifdef CONFIG_OF | 907 | |
908 | else | ||
909 | of_platform_populate(NULL, of_default_bus_match_table, | ||
910 | NULL, NULL); | ||
911 | #endif | ||
912 | return 0; | 908 | return 0; |
913 | } | 909 | } |
914 | arch_initcall(customize_machine); | 910 | arch_initcall(customize_machine); |