Commit 5a1b22be authored by Mark Brown's avatar Mark Brown Committed by Liam Girdwood

regulator: Move regulator drivers to subsys_initcall()

Regulators need to be available early in init in order to allow them
to be available for consumers when requested. This is generally done
by registering them at subsys_initcall() time but not all regulator
drivers have done that. Convert these drivers to do so in order to
mimimise future support.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarMike Rapoport <mike@compulab.co.il>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 7c314991
...@@ -504,7 +504,7 @@ static int __init da903x_regulator_init(void) ...@@ -504,7 +504,7 @@ static int __init da903x_regulator_init(void)
{ {
return platform_driver_register(&da903x_regulator_driver); return platform_driver_register(&da903x_regulator_driver);
} }
module_init(da903x_regulator_init); subsys_initcall(da903x_regulator_init);
static void __exit da903x_regulator_exit(void) static void __exit da903x_regulator_exit(void)
{ {
......
...@@ -117,7 +117,7 @@ static int __init regulator_fixed_voltage_init(void) ...@@ -117,7 +117,7 @@ static int __init regulator_fixed_voltage_init(void)
{ {
return platform_driver_register(&regulator_fixed_voltage_driver); return platform_driver_register(&regulator_fixed_voltage_driver);
} }
module_init(regulator_fixed_voltage_init); subsys_initcall(regulator_fixed_voltage_init);
static void __exit regulator_fixed_voltage_exit(void) static void __exit regulator_fixed_voltage_exit(void)
{ {
......
...@@ -316,7 +316,7 @@ static int __init pcf50633_regulator_init(void) ...@@ -316,7 +316,7 @@ static int __init pcf50633_regulator_init(void)
{ {
return platform_driver_register(&pcf50633_regulator_driver); return platform_driver_register(&pcf50633_regulator_driver);
} }
module_init(pcf50633_regulator_init); subsys_initcall(pcf50633_regulator_init);
static void __exit pcf50633_regulator_exit(void) static void __exit pcf50633_regulator_exit(void)
{ {
......
...@@ -380,7 +380,7 @@ static int __init wm8400_regulator_init(void) ...@@ -380,7 +380,7 @@ static int __init wm8400_regulator_init(void)
{ {
return platform_driver_register(&wm8400_regulator_driver); return platform_driver_register(&wm8400_regulator_driver);
} }
module_init(wm8400_regulator_init); subsys_initcall(wm8400_regulator_init);
static void __exit wm8400_regulator_exit(void) static void __exit wm8400_regulator_exit(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment