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 | |
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>
23 files changed, 1 insertions, 59 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); |
diff --git a/arch/arm/mach-artpec/board-artpec6.c b/arch/arm/mach-artpec/board-artpec6.c index 71513df3374e..a0b1979c2c2c 100644 --- a/arch/arm/mach-artpec/board-artpec6.c +++ b/arch/arm/mach-artpec/board-artpec6.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include <linux/irqchip.h> | 13 | #include <linux/irqchip.h> |
14 | #include <linux/irqchip/arm-gic.h> | 14 | #include <linux/irqchip/arm-gic.h> |
15 | #include <linux/mfd/syscon.h> | 15 | #include <linux/mfd/syscon.h> |
16 | #include <linux/of_platform.h> | ||
17 | #include <linux/of.h> | 16 | #include <linux/of.h> |
18 | #include <linux/of_address.h> | 17 | #include <linux/of_address.h> |
19 | #include <linux/clk-provider.h> | 18 | #include <linux/clk-provider.h> |
@@ -44,8 +43,6 @@ static void __init artpec6_init_machine(void) | |||
44 | regmap_write(regmap, ARTPEC6_DMACFG_REGNUM, | 43 | regmap_write(regmap, ARTPEC6_DMACFG_REGNUM, |
45 | ARTPEC6_DMACFG_UARTS_BURST); | 44 | ARTPEC6_DMACFG_UARTS_BURST); |
46 | }; | 45 | }; |
47 | |||
48 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
49 | } | 46 | } |
50 | 47 | ||
51 | static void artpec6_l2c310_write_sec(unsigned long val, unsigned reg) | 48 | static void artpec6_l2c310_write_sec(unsigned long val, unsigned reg) |
diff --git a/arch/arm/mach-bcm/board_bcm21664.c b/arch/arm/mach-bcm/board_bcm21664.c index 82ad5687771f..0d7034c57334 100644 --- a/arch/arm/mach-bcm/board_bcm21664.c +++ b/arch/arm/mach-bcm/board_bcm21664.c | |||
@@ -12,7 +12,6 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/of_address.h> | 14 | #include <linux/of_address.h> |
15 | #include <linux/of_platform.h> | ||
16 | #include <linux/io.h> | 15 | #include <linux/io.h> |
17 | 16 | ||
18 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
@@ -60,7 +59,6 @@ static void bcm21664_restart(enum reboot_mode mode, const char *cmd) | |||
60 | 59 | ||
61 | static void __init bcm21664_init(void) | 60 | static void __init bcm21664_init(void) |
62 | { | 61 | { |
63 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
64 | kona_l2_cache_init(); | 62 | kona_l2_cache_init(); |
65 | } | 63 | } |
66 | 64 | ||
diff --git a/arch/arm/mach-bcm/board_bcm281xx.c b/arch/arm/mach-bcm/board_bcm281xx.c index 2e367bd7c600..b81bb386951d 100644 --- a/arch/arm/mach-bcm/board_bcm281xx.c +++ b/arch/arm/mach-bcm/board_bcm281xx.c | |||
@@ -13,7 +13,6 @@ | |||
13 | 13 | ||
14 | #include <linux/clocksource.h> | 14 | #include <linux/clocksource.h> |
15 | #include <linux/of_address.h> | 15 | #include <linux/of_address.h> |
16 | #include <linux/of_platform.h> | ||
17 | 16 | ||
18 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
19 | 18 | ||
@@ -58,7 +57,6 @@ static void bcm281xx_restart(enum reboot_mode mode, const char *cmd) | |||
58 | 57 | ||
59 | static void __init bcm281xx_init(void) | 58 | static void __init bcm281xx_init(void) |
60 | { | 59 | { |
61 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
62 | kona_l2_cache_init(); | 60 | kona_l2_cache_init(); |
63 | } | 61 | } |
64 | 62 | ||
diff --git a/arch/arm/mach-bcm/board_bcm2835.c b/arch/arm/mach-bcm/board_bcm2835.c index 834d67684e20..0c1edfc98696 100644 --- a/arch/arm/mach-bcm/board_bcm2835.c +++ b/arch/arm/mach-bcm/board_bcm2835.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | #include <linux/irqchip.h> | 16 | #include <linux/irqchip.h> |
17 | #include <linux/of_address.h> | 17 | #include <linux/of_address.h> |
18 | #include <linux/of_platform.h> | ||
19 | #include <linux/clk/bcm2835.h> | 18 | #include <linux/clk/bcm2835.h> |
20 | 19 | ||
21 | #include <asm/mach/arch.h> | 20 | #include <asm/mach/arch.h> |
@@ -23,16 +22,7 @@ | |||
23 | 22 | ||
24 | static void __init bcm2835_init(void) | 23 | static void __init bcm2835_init(void) |
25 | { | 24 | { |
26 | int ret; | ||
27 | |||
28 | bcm2835_init_clocks(); | 25 | bcm2835_init_clocks(); |
29 | |||
30 | ret = of_platform_populate(NULL, of_default_bus_match_table, NULL, | ||
31 | NULL); | ||
32 | if (ret) { | ||
33 | pr_err("of_platform_populate failed: %d\n", ret); | ||
34 | BUG(); | ||
35 | } | ||
36 | } | 26 | } |
37 | 27 | ||
38 | static const char * const bcm2835_compat[] = { | 28 | static const char * const bcm2835_compat[] = { |
diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 52ccf247e079..dea410adee7e 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <linux/of.h> | 14 | #include <linux/of.h> |
15 | #include <linux/of_address.h> | 15 | #include <linux/of_address.h> |
16 | #include <linux/of_fdt.h> | 16 | #include <linux/of_fdt.h> |
17 | #include <linux/of_platform.h> | ||
18 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
19 | #include <linux/irqchip.h> | 18 | #include <linux/irqchip.h> |
20 | #include <linux/soc/samsung/exynos-regs-pmu.h> | 19 | #include <linux/soc/samsung/exynos-regs-pmu.h> |
@@ -217,8 +216,6 @@ static void __init exynos_dt_machine_init(void) | |||
217 | of_machine_is_compatible("samsung,exynos3250") || | 216 | of_machine_is_compatible("samsung,exynos3250") || |
218 | of_machine_is_compatible("samsung,exynos5250")) | 217 | of_machine_is_compatible("samsung,exynos5250")) |
219 | platform_device_register(&exynos_cpuidle); | 218 | platform_device_register(&exynos_cpuidle); |
220 | |||
221 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
222 | } | 219 | } |
223 | 220 | ||
224 | static char const *const exynos_dt_compat[] __initconst = { | 221 | static char const *const exynos_dt_compat[] __initconst = { |
diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c index 6050a14faee6..07f60986dc2c 100644 --- a/arch/arm/mach-highbank/highbank.c +++ b/arch/arm/mach-highbank/highbank.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/pl320-ipc.h> | 23 | #include <linux/pl320-ipc.h> |
24 | #include <linux/of.h> | 24 | #include <linux/of.h> |
25 | #include <linux/of_irq.h> | 25 | #include <linux/of_irq.h> |
26 | #include <linux/of_platform.h> | ||
27 | #include <linux/of_address.h> | 26 | #include <linux/of_address.h> |
28 | #include <linux/reboot.h> | 27 | #include <linux/reboot.h> |
29 | #include <linux/amba/bus.h> | 28 | #include <linux/amba/bus.h> |
@@ -163,8 +162,6 @@ static void __init highbank_init(void) | |||
163 | 162 | ||
164 | pl320_ipc_register_notifier(&hb_keys_nb); | 163 | pl320_ipc_register_notifier(&hb_keys_nb); |
165 | 164 | ||
166 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
167 | |||
168 | if (psci_ops.cpu_suspend) | 165 | if (psci_ops.cpu_suspend) |
169 | platform_device_register(&highbank_cpuidle_device); | 166 | platform_device_register(&highbank_cpuidle_device); |
170 | } | 167 | } |
diff --git a/arch/arm/mach-imx/mach-imx51.c b/arch/arm/mach-imx/mach-imx51.c index 10a82a4f1e58..ec64de611d90 100644 --- a/arch/arm/mach-imx/mach-imx51.c +++ b/arch/arm/mach-imx/mach-imx51.c | |||
@@ -52,8 +52,6 @@ static void __init imx51_dt_init(void) | |||
52 | { | 52 | { |
53 | imx51_ipu_mipi_setup(); | 53 | imx51_ipu_mipi_setup(); |
54 | imx_src_init(); | 54 | imx_src_init(); |
55 | |||
56 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
57 | } | 55 | } |
58 | 56 | ||
59 | static void __init imx51_init_late(void) | 57 | static void __init imx51_init_late(void) |
diff --git a/arch/arm/mach-imx/mach-imx53.c b/arch/arm/mach-imx/mach-imx53.c index 18b5c5c136db..68aec23be016 100644 --- a/arch/arm/mach-imx/mach-imx53.c +++ b/arch/arm/mach-imx/mach-imx53.c | |||
@@ -32,8 +32,6 @@ static void __init imx53_dt_init(void) | |||
32 | { | 32 | { |
33 | imx_src_init(); | 33 | imx_src_init(); |
34 | 34 | ||
35 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
36 | |||
37 | imx_aips_allow_unprivileged_access("fsl,imx53-aipstz"); | 35 | imx_aips_allow_unprivileged_access("fsl,imx53-aipstz"); |
38 | } | 36 | } |
39 | 37 | ||
diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c index a38b16b69923..4078b1c0e486 100644 --- a/arch/arm/mach-imx/mach-imx6ul.c +++ b/arch/arm/mach-imx/mach-imx6ul.c | |||
@@ -64,7 +64,6 @@ static void __init imx6ul_init_machine(void) | |||
64 | if (parent == NULL) | 64 | if (parent == NULL) |
65 | pr_warn("failed to initialize soc device\n"); | 65 | pr_warn("failed to initialize soc device\n"); |
66 | 66 | ||
67 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
68 | imx6ul_enet_init(); | 67 | imx6ul_enet_init(); |
69 | imx_anatop_init(); | 68 | imx_anatop_init(); |
70 | imx6ul_pm_init(); | 69 | imx6ul_pm_init(); |
diff --git a/arch/arm/mach-imx/mach-imx7d.c b/arch/arm/mach-imx/mach-imx7d.c index b450f525a670..f388e6bd46ec 100644 --- a/arch/arm/mach-imx/mach-imx7d.c +++ b/arch/arm/mach-imx/mach-imx7d.c | |||
@@ -93,7 +93,6 @@ static void __init imx7d_init_machine(void) | |||
93 | if (parent == NULL) | 93 | if (parent == NULL) |
94 | pr_warn("failed to initialize soc device\n"); | 94 | pr_warn("failed to initialize soc device\n"); |
95 | 95 | ||
96 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
97 | imx_anatop_init(); | 96 | imx_anatop_init(); |
98 | imx7d_enet_init(); | 97 | imx7d_enet_init(); |
99 | } | 98 | } |
diff --git a/arch/arm/mach-keystone/keystone.c b/arch/arm/mach-keystone/keystone.c index a33a296b00dc..84613abf35a3 100644 --- a/arch/arm/mach-keystone/keystone.c +++ b/arch/arm/mach-keystone/keystone.c | |||
@@ -60,7 +60,6 @@ static void __init keystone_init(void) | |||
60 | bus_register_notifier(&platform_bus_type, &platform_nb); | 60 | bus_register_notifier(&platform_bus_type, &platform_nb); |
61 | } | 61 | } |
62 | keystone_pm_runtime_init(); | 62 | keystone_pm_runtime_init(); |
63 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
64 | } | 63 | } |
65 | 64 | ||
66 | static long long __init keystone_pv_fixup(void) | 65 | static long long __init keystone_pv_fixup(void) |
diff --git a/arch/arm/mach-mvebu/board-v7.c b/arch/arm/mach-mvebu/board-v7.c index 1648edd515a2..ccca95173e17 100644 --- a/arch/arm/mach-mvebu/board-v7.c +++ b/arch/arm/mach-mvebu/board-v7.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/of_address.h> | 17 | #include <linux/of_address.h> |
18 | #include <linux/of_fdt.h> | 18 | #include <linux/of_fdt.h> |
19 | #include <linux/of_platform.h> | ||
20 | #include <linux/io.h> | 19 | #include <linux/io.h> |
21 | #include <linux/clocksource.h> | 20 | #include <linux/clocksource.h> |
22 | #include <linux/dma-mapping.h> | 21 | #include <linux/dma-mapping.h> |
@@ -144,8 +143,6 @@ static void __init mvebu_dt_init(void) | |||
144 | { | 143 | { |
145 | if (of_machine_is_compatible("marvell,armadaxp")) | 144 | if (of_machine_is_compatible("marvell,armadaxp")) |
146 | i2c_quirk(); | 145 | i2c_quirk(); |
147 | |||
148 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
149 | } | 146 | } |
150 | 147 | ||
151 | static const char * const armada_370_xp_dt_compat[] __initconst = { | 148 | static const char * const armada_370_xp_dt_compat[] __initconst = { |
diff --git a/arch/arm/mach-mvebu/dove.c b/arch/arm/mach-mvebu/dove.c index 1aebb82e3d7b..d076c5771adc 100644 --- a/arch/arm/mach-mvebu/dove.c +++ b/arch/arm/mach-mvebu/dove.c | |||
@@ -11,7 +11,6 @@ | |||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/mbus.h> | 12 | #include <linux/mbus.h> |
13 | #include <linux/of.h> | 13 | #include <linux/of.h> |
14 | #include <linux/of_platform.h> | ||
15 | #include <linux/soc/dove/pmu.h> | 14 | #include <linux/soc/dove/pmu.h> |
16 | #include <asm/hardware/cache-tauros2.h> | 15 | #include <asm/hardware/cache-tauros2.h> |
17 | #include <asm/mach/arch.h> | 16 | #include <asm/mach/arch.h> |
@@ -26,7 +25,6 @@ static void __init dove_init(void) | |||
26 | #endif | 25 | #endif |
27 | BUG_ON(mvebu_mbus_dt_init(false)); | 26 | BUG_ON(mvebu_mbus_dt_init(false)); |
28 | dove_init_pmu(); | 27 | dove_init_pmu(); |
29 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
30 | } | 28 | } |
31 | 29 | ||
32 | static const char * const dove_dt_compat[] __initconst = { | 30 | static const char * const dove_dt_compat[] __initconst = { |
diff --git a/arch/arm/mach-picoxcell/common.c b/arch/arm/mach-picoxcell/common.c index ec79fea82704..4e3d6d5c82cd 100644 --- a/arch/arm/mach-picoxcell/common.c +++ b/arch/arm/mach-picoxcell/common.c | |||
@@ -10,7 +10,6 @@ | |||
10 | #include <linux/delay.h> | 10 | #include <linux/delay.h> |
11 | #include <linux/of.h> | 11 | #include <linux/of.h> |
12 | #include <linux/of_address.h> | 12 | #include <linux/of_address.h> |
13 | #include <linux/of_platform.h> | ||
14 | #include <linux/reboot.h> | 13 | #include <linux/reboot.h> |
15 | 14 | ||
16 | #include <asm/mach/arch.h> | 15 | #include <asm/mach/arch.h> |
@@ -54,7 +53,6 @@ static void __init picoxcell_map_io(void) | |||
54 | 53 | ||
55 | static void __init picoxcell_init_machine(void) | 54 | static void __init picoxcell_init_machine(void) |
56 | { | 55 | { |
57 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
58 | picoxcell_setup_restart(); | 56 | picoxcell_setup_restart(); |
59 | } | 57 | } |
60 | 58 | ||
diff --git a/arch/arm/mach-rockchip/rockchip.c b/arch/arm/mach-rockchip/rockchip.c index beb71da5d9c8..a7ab9ec141f8 100644 --- a/arch/arm/mach-rockchip/rockchip.c +++ b/arch/arm/mach-rockchip/rockchip.c | |||
@@ -73,7 +73,6 @@ static void __init rockchip_timer_init(void) | |||
73 | static void __init rockchip_dt_init(void) | 73 | static void __init rockchip_dt_init(void) |
74 | { | 74 | { |
75 | rockchip_suspend_init(); | 75 | rockchip_suspend_init(); |
76 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
77 | } | 76 | } |
78 | 77 | ||
79 | static const char * const rockchip_board_dt_compat[] = { | 78 | static const char * const rockchip_board_dt_compat[] = { |
diff --git a/arch/arm/mach-s3c24xx/mach-s3c2416-dt.c b/arch/arm/mach-s3c24xx/mach-s3c2416-dt.c index 5f028ff84cfe..c83c076578dd 100644 --- a/arch/arm/mach-s3c24xx/mach-s3c2416-dt.c +++ b/arch/arm/mach-s3c24xx/mach-s3c2416-dt.c | |||
@@ -17,7 +17,6 @@ | |||
17 | 17 | ||
18 | #include <linux/clocksource.h> | 18 | #include <linux/clocksource.h> |
19 | #include <linux/irqchip.h> | 19 | #include <linux/irqchip.h> |
20 | #include <linux/of_platform.h> | ||
21 | #include <linux/serial_s3c.h> | 20 | #include <linux/serial_s3c.h> |
22 | 21 | ||
23 | #include <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
@@ -35,7 +34,6 @@ static void __init s3c2416_dt_map_io(void) | |||
35 | 34 | ||
36 | static void __init s3c2416_dt_machine_init(void) | 35 | static void __init s3c2416_dt_machine_init(void) |
37 | { | 36 | { |
38 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
39 | s3c_pm_init(); | 37 | s3c_pm_init(); |
40 | } | 38 | } |
41 | 39 | ||
diff --git a/arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c b/arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c index bbf74edd3dd9..5bf9afae752d 100644 --- a/arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c +++ b/arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c | |||
@@ -8,8 +8,6 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/of_platform.h> | ||
12 | |||
13 | #include <asm/mach/arch.h> | 11 | #include <asm/mach/arch.h> |
14 | #include <asm/mach/map.h> | 12 | #include <asm/mach/map.h> |
15 | #include <asm/system_misc.h> | 13 | #include <asm/system_misc.h> |
@@ -48,7 +46,6 @@ static void __init s3c64xx_dt_map_io(void) | |||
48 | static void __init s3c64xx_dt_init_machine(void) | 46 | static void __init s3c64xx_dt_init_machine(void) |
49 | { | 47 | { |
50 | samsung_wdt_reset_of_init(); | 48 | samsung_wdt_reset_of_init(); |
51 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
52 | } | 49 | } |
53 | 50 | ||
54 | static void s3c64xx_dt_restart(enum reboot_mode mode, const char *cmd) | 51 | static void s3c64xx_dt_restart(enum reboot_mode mode, const char *cmd) |
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index db6dbfbaf9f1..3849eef0d3a7 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | #include <linux/irqchip.h> | 19 | #include <linux/irqchip.h> |
20 | #include <linux/irqchip/arm-gic.h> | 20 | #include <linux/irqchip/arm-gic.h> |
21 | #include <linux/of_platform.h> | ||
22 | 21 | ||
23 | #include <asm/mach/map.h> | 22 | #include <asm/mach/map.h> |
24 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
@@ -77,8 +76,6 @@ static void __init r8a7740_init_irq_of(void) | |||
77 | static void __init r8a7740_generic_init(void) | 76 | static void __init r8a7740_generic_init(void) |
78 | { | 77 | { |
79 | r8a7740_meram_workaround(); | 78 | r8a7740_meram_workaround(); |
80 | |||
81 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
82 | } | 79 | } |
83 | 80 | ||
84 | static const char *const r8a7740_boards_compat_dt[] __initconst = { | 81 | static const char *const r8a7740_boards_compat_dt[] __initconst = { |
diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index 99a2004cac76..a25ff188e403 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/interrupt.h> | 19 | #include <linux/interrupt.h> |
20 | #include <linux/irq.h> | 20 | #include <linux/irq.h> |
21 | #include <linux/of_platform.h> | ||
22 | #include <linux/delay.h> | 21 | #include <linux/delay.h> |
23 | #include <linux/input.h> | 22 | #include <linux/input.h> |
24 | #include <linux/io.h> | 23 | #include <linux/io.h> |
@@ -55,7 +54,6 @@ static void __init sh73a0_generic_init(void) | |||
55 | /* Shared attribute override enable, 64K*8way */ | 54 | /* Shared attribute override enable, 64K*8way */ |
56 | l2x0_init(IOMEM(0xf0100000), 0x00400000, 0xc20f0fff); | 55 | l2x0_init(IOMEM(0xf0100000), 0x00400000, 0xc20f0fff); |
57 | #endif | 56 | #endif |
58 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
59 | } | 57 | } |
60 | 58 | ||
61 | static const char *const sh73a0_boards_compat_dt[] __initconst = { | 59 | static const char *const sh73a0_boards_compat_dt[] __initconst = { |
diff --git a/arch/arm/mach-spear/spear1310.c b/arch/arm/mach-spear/spear1310.c index cd5d375d91f0..a7d4f136836f 100644 --- a/arch/arm/mach-spear/spear1310.c +++ b/arch/arm/mach-spear/spear1310.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #define pr_fmt(fmt) "SPEAr1310: " fmt | 14 | #define pr_fmt(fmt) "SPEAr1310: " fmt |
15 | 15 | ||
16 | #include <linux/amba/pl022.h> | 16 | #include <linux/amba/pl022.h> |
17 | #include <linux/of_platform.h> | ||
18 | #include <linux/pata_arasan_cf_data.h> | 17 | #include <linux/pata_arasan_cf_data.h> |
19 | #include <asm/mach/arch.h> | 18 | #include <asm/mach/arch.h> |
20 | #include <asm/mach/map.h> | 19 | #include <asm/mach/map.h> |
@@ -27,7 +26,6 @@ | |||
27 | 26 | ||
28 | static void __init spear1310_dt_init(void) | 27 | static void __init spear1310_dt_init(void) |
29 | { | 28 | { |
30 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
31 | platform_device_register_simple("spear-cpufreq", -1, NULL, 0); | 29 | platform_device_register_simple("spear-cpufreq", -1, NULL, 0); |
32 | } | 30 | } |
33 | 31 | ||
diff --git a/arch/arm/mach-spear/spear1340.c b/arch/arm/mach-spear/spear1340.c index 94594d5a446c..a212af90c0bc 100644 --- a/arch/arm/mach-spear/spear1340.c +++ b/arch/arm/mach-spear/spear1340.c | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | static void __init spear1340_dt_init(void) | 20 | static void __init spear1340_dt_init(void) |
21 | { | 21 | { |
22 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
23 | platform_device_register_simple("spear-cpufreq", -1, NULL, 0); | 22 | platform_device_register_simple("spear-cpufreq", -1, NULL, 0); |
24 | } | 23 | } |
25 | 24 | ||
diff --git a/arch/arm/mach-vt8500/vt8500.c b/arch/arm/mach-vt8500/vt8500.c index 3bc0dc9a4d69..773c04fdb746 100644 --- a/arch/arm/mach-vt8500/vt8500.c +++ b/arch/arm/mach-vt8500/vt8500.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/of.h> | 30 | #include <linux/of.h> |
31 | #include <linux/of_address.h> | 31 | #include <linux/of_address.h> |
32 | #include <linux/of_irq.h> | 32 | #include <linux/of_irq.h> |
33 | #include <linux/of_platform.h> | ||
34 | 33 | ||
35 | #define LEGACY_GPIO_BASE 0xD8110000 | 34 | #define LEGACY_GPIO_BASE 0xD8110000 |
36 | #define LEGACY_PMC_BASE 0xD8130000 | 35 | #define LEGACY_PMC_BASE 0xD8130000 |
@@ -158,8 +157,6 @@ static void __init vt8500_init(void) | |||
158 | pm_power_off = &vt8500_power_off; | 157 | pm_power_off = &vt8500_power_off; |
159 | else | 158 | else |
160 | pr_err("%s: PMC Hibernation register could not be remapped, not enabling power off!\n", __func__); | 159 | pr_err("%s: PMC Hibernation register could not be remapped, not enabling power off!\n", __func__); |
161 | |||
162 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
163 | } | 160 | } |
164 | 161 | ||
165 | static const char * const vt8500_dt_compat[] = { | 162 | static const char * const vt8500_dt_compat[] = { |