* [PATCH 0/2] phy: convert to subsys_platform_driver()
@ 2026-11-07 0:25 Brian Masney
2026-11-07 0:25 ` [PATCH 1/2] phy: ti: omap-control: " Brian Masney
2026-11-07 0:25 ` [PATCH 2/2] phy: ti: phy-twl4030-usb: " Brian Masney
0 siblings, 2 replies; 3+ messages in thread
From: Brian Masney @ 2026-11-07 0:25 UTC (permalink / raw)
To: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam
Cc: linux-phy, linux-kernel, Brian Masney
Reduce boilerplate code in these drivers and convert them over to use
the macro subsys_platform_driver().
Signed-off-by: Brian Masney <bmasney@redhat.com>
---
Brian Masney (2):
phy: ti: omap-control: convert to subsys_platform_driver()
phy: ti: phy-twl4030-usb: convert to subsys_platform_driver()
drivers/phy/ti/phy-omap-control.c | 12 +-----------
drivers/phy/ti/phy-twl4030-usb.c | 12 +-----------
2 files changed, 2 insertions(+), 22 deletions(-)
---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
change-id: 20261106-phy-subsys-1ee69f26649f
Best regards,
--
Brian Masney <bmasney@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 1/2] phy: ti: omap-control: convert to subsys_platform_driver()
2026-11-07 0:25 [PATCH 0/2] phy: convert to subsys_platform_driver() Brian Masney
@ 2026-11-07 0:25 ` Brian Masney
2026-11-07 0:25 ` [PATCH 2/2] phy: ti: phy-twl4030-usb: " Brian Masney
1 sibling, 0 replies; 3+ messages in thread
From: Brian Masney @ 2026-11-07 0:25 UTC (permalink / raw)
To: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam
Cc: linux-phy, linux-kernel, Brian Masney
Reduce boilerplate code in this driver and convert it over to use
the macro subsys_platform_driver().
Signed-off-by: Brian Masney <bmasney@redhat.com>
---
drivers/phy/ti/phy-omap-control.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/phy/ti/phy-omap-control.c b/drivers/phy/ti/phy-omap-control.c
index 4968434312f8..3747401600a6 100644
--- a/drivers/phy/ti/phy-omap-control.c
+++ b/drivers/phy/ti/phy-omap-control.c
@@ -322,17 +322,7 @@ static struct platform_driver omap_control_phy_driver = {
},
};
-static int __init omap_control_phy_init(void)
-{
- return platform_driver_register(&omap_control_phy_driver);
-}
-subsys_initcall(omap_control_phy_init);
-
-static void __exit omap_control_phy_exit(void)
-{
- platform_driver_unregister(&omap_control_phy_driver);
-}
-module_exit(omap_control_phy_exit);
+subsys_platform_driver(omap_control_phy_driver);
MODULE_AUTHOR("Texas Instruments Inc.");
MODULE_DESCRIPTION("OMAP Control Module PHY Driver");
--
2.56.0
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 2/2] phy: ti: phy-twl4030-usb: convert to subsys_platform_driver()
2026-11-07 0:25 [PATCH 0/2] phy: convert to subsys_platform_driver() Brian Masney
2026-11-07 0:25 ` [PATCH 1/2] phy: ti: omap-control: " Brian Masney
@ 2026-11-07 0:25 ` Brian Masney
1 sibling, 0 replies; 3+ messages in thread
From: Brian Masney @ 2026-11-07 0:25 UTC (permalink / raw)
To: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam
Cc: linux-phy, linux-kernel, Brian Masney
Reduce boilerplate code in this driver and convert it over to use
the macro subsys_platform_driver().
Signed-off-by: Brian Masney <bmasney@redhat.com>
---
drivers/phy/ti/phy-twl4030-usb.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/phy/ti/phy-twl4030-usb.c b/drivers/phy/ti/phy-twl4030-usb.c
index a26aec3ab29e..08aaf0f8712b 100644
--- a/drivers/phy/ti/phy-twl4030-usb.c
+++ b/drivers/phy/ti/phy-twl4030-usb.c
@@ -841,17 +841,7 @@ static struct platform_driver twl4030_usb_driver = {
},
};
-static int __init twl4030_usb_init(void)
-{
- return platform_driver_register(&twl4030_usb_driver);
-}
-subsys_initcall(twl4030_usb_init);
-
-static void __exit twl4030_usb_exit(void)
-{
- platform_driver_unregister(&twl4030_usb_driver);
-}
-module_exit(twl4030_usb_exit);
+subsys_platform_driver(twl4030_usb_driver);
MODULE_ALIAS("platform:twl4030_usb");
MODULE_AUTHOR("Texas Instruments, Inc, Nokia Corporation");
--
2.56.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-07 0:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 0:25 [PATCH 0/2] phy: convert to subsys_platform_driver() Brian Masney
2026-11-07 0:25 ` [PATCH 1/2] phy: ti: omap-control: " Brian Masney
2026-11-07 0:25 ` [PATCH 2/2] phy: ti: phy-twl4030-usb: " Brian Masney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®