mfd: early init for MFD running regulators
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 15 Jun 2009 16:04:54 +0000 (18:04 +0200)
committerSamuel Ortiz <sameol@linux.intel.com>
Wed, 17 Jun 2009 17:41:54 +0000 (19:41 +0200)
For MFDs running regulator cores, we really want them to be brought up early
during boot.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Mike Rapoport <mike@compulab.co.il>
drivers/mfd/da903x.c
drivers/mfd/pcf50633-core.c
drivers/mfd/wm8400-core.c

index 7283d88656af06e6003b3f49b84f6ac8022afa48..e5ffe561739387837a37bd66454ee089b580f4d9 100644 (file)
@@ -561,7 +561,7 @@ static int __init da903x_init(void)
 {
        return i2c_add_driver(&da903x_driver);
 }
-module_init(da903x_init);
+subsys_initcall(da903x_init);
 
 static void __exit da903x_exit(void)
 {
index 082c197ab9b861f3071f4dac1677bbcfb512dca4..8d3c38bf9714857fbe97507e52498a39cec122c2 100644 (file)
@@ -705,5 +705,5 @@ MODULE_DESCRIPTION("I2C chip driver for NXP PCF50633 PMU");
 MODULE_AUTHOR("Harald Welte <laforge@openmoko.org>");
 MODULE_LICENSE("GPL");
 
-module_init(pcf50633_init);
+subsys_initcall(pcf50633_init);
 module_exit(pcf50633_exit);
index 7c21bf7915696253b75064b3146a89bdf5a9c905..ecfc8bbe89b9fc37ad03d3bcfa97738d7dcd9d00 100644 (file)
@@ -460,7 +460,7 @@ static int __init wm8400_module_init(void)
 
        return ret;
 }
-module_init(wm8400_module_init);
+subsys_initcall(wm8400_module_init);
 
 static void __exit wm8400_module_exit(void)
 {