mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] clk: tps68470: Convert to subsys_platform_driver()
@ 2026-11-04 11:32 Peng Fan (OSS)
  2026-11-04 15:02 ` Brian Masney
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Fan (OSS) @ 2026-11-04 11:32 UTC (permalink / raw)
  To: Stephen Boyd, Brian Masney, Jerome Brunet; +Cc: linux-clk, linux-kernel

From: Peng Fan <peng.fan@nxp.com>

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@nxp.com>
---
 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


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

end of thread, other threads:[~2026-11-04 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 11:32 [PATCH] clk: tps68470: Convert to subsys_platform_driver() Peng Fan (OSS)
2026-11-04 15:02 ` 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®