All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: imx6q: drop of_platform_default_populate() from init_machine
@ 2021-05-25 10:01 Marco Felsch
  2021-06-12  3:55 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Felsch @ 2021-05-25 10:01 UTC (permalink / raw)
  To: linux, shawnguo, festevam; +Cc: kernel, linux-imx, linux-arm-kernel

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(-)

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();
-- 
2.29.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: imx6q: drop of_platform_default_populate() from init_machine
  2021-05-25 10:01 [PATCH] ARM: imx6q: drop of_platform_default_populate() from init_machine Marco Felsch
@ 2021-06-12  3:55 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2021-06-12  3:55 UTC (permalink / raw)
  To: Marco Felsch; +Cc: linux, festevam, kernel, linux-imx, linux-arm-kernel

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.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-12  3:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 10:01 [PATCH] ARM: imx6q: drop of_platform_default_populate() from init_machine Marco Felsch
2021-06-12  3:55 ` Shawn Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.