mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: imx: src: Use postcore_platform_driver() macro
@ 2022-06-28  6:19 Alexander Shiyan
  2022-06-28  6:19 ` [PATCH] drivers: firmware: arm-scmi: Use core_platform_driver() macro Alexander Shiyan
  2022-06-29  7:12 ` [PATCH] ARM: imx: src: Use postcore_platform_driver() macro Sascha Hauer
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Shiyan @ 2022-06-28  6:19 UTC (permalink / raw)
  To: barebox; +Cc: Alexander Shiyan

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
 arch/arm/mach-imx/src.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/arch/arm/mach-imx/src.c b/arch/arm/mach-imx/src.c
index 8272d5b720..8366397e10 100644
--- a/arch/arm/mach-imx/src.c
+++ b/arch/arm/mach-imx/src.c
@@ -43,9 +43,4 @@ static struct driver_d imx_src_reset_driver = {
 	.probe	= imx_src_reset_probe,
 	.of_compatible	= DRV_OF_COMPAT(imx_src_dt_ids),
 };
-
-static int imx_src_reset_init(void)
-{
-	return platform_driver_register(&imx_src_reset_driver);
-}
-postcore_initcall(imx_src_reset_init);
+postcore_platform_driver(imx_src_reset_driver);
-- 
2.32.0




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

end of thread, other threads:[~2022-07-01  6:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28  6:19 [PATCH] ARM: imx: src: Use postcore_platform_driver() macro Alexander Shiyan
2022-06-28  6:19 ` [PATCH] drivers: firmware: arm-scmi: Use core_platform_driver() macro Alexander Shiyan
2022-06-28  8:25   ` Ahmad Fatoum
2022-06-30 18:58   ` Sascha Hauer
2022-06-30 19:04     ` Alexander Shiyan
2022-07-01  6:47       ` Sascha Hauer
2022-06-29  7:12 ` [PATCH] ARM: imx: src: Use postcore_platform_driver() macro Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox