[PATCH DISCUSSION 7/8] regulator: fixed: reset initcall level

Francesco Valla <[email protected]> Wed, 26 Nov 2025 23:54:35 +0100
Newsgroups org.kernel.vger.linux-embedded
Message-ID <[email protected]>
With the fw_devlink infrastracture in place, a custom initcall level is
doing more harm than good, especially in arm64 platforms that relies on
firmware for power management and clock setup.

Reset the initcall level to the default.

Signed-off-by: Francesco Valla <[email protected]>
---
 drivers/regulator/fixed.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index a2d16e9abfb58dc3ebd1c1c612fe699ae3487d95..36e70e70ab2d19818b90d9ca72e615bd6cdfe800 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -390,18 +390,7 @@ static struct platform_driver regulator_fixed_voltage_driver = {
 		.of_match_table = of_match_ptr(fixed_of_match),
 	},
 };
-
-static int __init regulator_fixed_voltage_init(void)
-{
-	return platform_driver_register(&regulator_fixed_voltage_driver);
-}
-subsys_initcall(regulator_fixed_voltage_init);
-
-static void __exit regulator_fixed_voltage_exit(void)
-{
-	platform_driver_unregister(&regulator_fixed_voltage_driver);
-}
-module_exit(regulator_fixed_voltage_exit);
+module_platform_driver(regulator_fixed_voltage_driver);
 
 MODULE_AUTHOR("Mark Brown <[email protected]>");
 MODULE_DESCRIPTION("Fixed voltage regulator");

-- 
2.52.0