[PATCH] clk: tps68470: Convert to subsys_platform_driver()

From: Peng Fan (OSS)

Date: Wed Nov 04 2026 - 06:41:05 EST


From: Peng Fan <peng.fan@xxxxxxx>

Replace the open-coded subsys_initcall()/module_exit() platform driver
registration with subsys_platform_driver().

No functional change.

Signed-off-by: Peng Fan <peng.fan@xxxxxxx>
---
drivers/clk/clk-tps68470.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/drivers/clk/clk-tps68470.c b/drivers/clk/clk-tps68470.c
index 9511248c6bc9..bbf0da63fbf8 100644
--- a/drivers/clk/clk-tps68470.c
+++ b/drivers/clk/clk-tps68470.c
@@ -251,17 +251,7 @@ static struct platform_driver tps68470_clk_driver = {
* registering before the drivers for the camera-sensors which use them bind.
* subsys_initcall() ensures this when the drivers are builtin.
*/
-static int __init tps68470_clk_init(void)
-{
- return platform_driver_register(&tps68470_clk_driver);
-}
-subsys_initcall(tps68470_clk_init);
-
-static void __exit tps68470_clk_exit(void)
-{
- platform_driver_unregister(&tps68470_clk_driver);
-}
-module_exit(tps68470_clk_exit);
+subsys_platform_driver(tps68470_clk_driver);

MODULE_ALIAS("platform:tps68470-clk");
MODULE_DESCRIPTION("clock driver for TPS68470 pmic");
--
2.51.0