Skip to contentSkip to conversation

ARM: i.MX: Use postcore_platform_driver() macro for imx src driver

PATCH Applied Alexander Shiyan 2 participants 2 messages May 4, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: i.MX: Use postcore_platform_driver() macro for imx src driver

---
 arch/arm/mach-imx/src.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
arch/arm/mach-imx/src.c +1 -6
index 4557e623a6..8cfc3878b0 100644
@@ -43,9 +43,4 @@ static struct driver 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);
Signature · 1 line
2.39.1
Applied
#1 lore raw
Quoted 4 lines · Alexander Shiyan
---
 arch/arm/mach-imx/src.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

Applied, thanks

Sascha

Quoted 21 lines
arch/arm/mach-imx/src.c +1 -6
index 4557e623a6..8cfc3878b0 100644
@@ -43,9 +43,4 @@ static struct driver 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);
Signature · 1 line
2.39.1
Signature · 4 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |