diff mbox series

ARM: imx6q: drop of_platform_default_populate() from init_machine

Message ID 20210525100108.11014-1-m.felsch@pengutronix.de (mailing list archive)
State New, archived
Headers show
Series ARM: imx6q: drop of_platform_default_populate() from init_machine | expand

Commit Message

Marco Felsch May 25, 2021, 10:01 a.m. UTC
Dropping the machine_init specific of_platform_default_populate() can be
done safely due to the following two facts:

1)
Since commit 44a7185c2ae6 ("of/platform: Add common method to populate
default bus") we have a common method to populate the devices.

2)
The machine_init code don't need bounded devices<>drivers since the code
uses syscon_regmap_lookup_by_compatible() which register a syscon
device on demand.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 arch/arm/mach-imx/mach-imx6q.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Shawn Guo June 12, 2021, 3:55 a.m. UTC | #1
On Tue, May 25, 2021 at 12:01:08PM +0200, Marco Felsch wrote:
> Dropping the machine_init specific of_platform_default_populate() can be
> done safely due to the following two facts:
> 
> 1)
> Since commit 44a7185c2ae6 ("of/platform: Add common method to populate
> default bus") we have a common method to populate the devices.
> 
> 2)
> The machine_init code don't need bounded devices<>drivers since the code
> uses syscon_regmap_lookup_by_compatible() which register a syscon
> device on demand.
> 
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>

Applied, thanks.
diff mbox series

Patch

diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index c9d7c29d95e1..11dcc369ec14 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -172,9 +172,6 @@  static void __init imx6q_init_machine(void)
 				imx_get_soc_revision());
 
 	imx6q_enet_phy_init();
-
-	of_platform_default_populate(NULL, NULL, NULL);
-
 	imx_anatop_init();
 	cpu_is_imx6q() ?  imx6q_pm_init() : imx6dl_pm_init();
 	imx6q_1588_init();