regulator: Move regulator drivers to subsys_initcall()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 27 Apr 2009 17:21:18 +0000 (18:21 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 15 Jun 2009 10:18:23 +0000 (11:18 +0100)
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: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/da903x.c
drivers/regulator/fixed.c
drivers/regulator/pcf50633-regulator.c
drivers/regulator/wm8400-regulator.c

index c6628f5a0af7b337fa2ad1426a81e0468a7f1ddc..b8b89ef10a84abdbc44573e30f0fb7c7d545b16d 100644 (file)
@@ -504,7 +504,7 @@ static int __init da903x_regulator_init(void)
 {
        return platform_driver_register(&da903x_regulator_driver);
 }
-module_init(da903x_regulator_init);
+subsys_initcall(da903x_regulator_init);
 
 static void __exit da903x_regulator_exit(void)
 {
index 23d554628a76128e6786bb9666a67c0179e4ec32..6e0bede16ef8db6ea608ca97143a0a07bfd6fabb 100644 (file)
@@ -117,7 +117,7 @@ static int __init regulator_fixed_voltage_init(void)
 {
        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)
 {
index cd761d85c8fdbc39e42a6cf3d67864744c64c76b..8e14900eb686f3a3b2d75dab42b72dac0e2cc8bf 100644 (file)
@@ -316,7 +316,7 @@ static int __init pcf50633_regulator_init(void)
 {
        return platform_driver_register(&pcf50633_regulator_driver);
 }
-module_init(pcf50633_regulator_init);
+subsys_initcall(pcf50633_regulator_init);
 
 static void __exit pcf50633_regulator_exit(void)
 {
index 157426029071fd72e5506c34dbeaecaf9ca9b619..01a6c952b7c9467ead4f18d0986befa79e24dba4 100644 (file)
@@ -380,7 +380,7 @@ static int __init wm8400_regulator_init(void)
 {
        return platform_driver_register(&wm8400_regulator_driver);
 }
-module_init(wm8400_regulator_init);
+subsys_initcall(wm8400_regulator_init);
 
 static void __exit wm8400_regulator_exit(void)
 {