Skip to contentSkip to conversation

mfd: early init for MFD running regulators

PATCH In review Samuel Ortiz 3 participants 3 messages Jun 15, 2009 – Jun 16, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: early init for MFD running regulators

From: Samuel Ortiz <[email protected]>

For MFDs running regulator cores, we really want them to be brought up early during boot.

---
 drivers/mfd/da903x.c        |    2 +-
 drivers/mfd/pcf50633-core.c |    2 +-
 drivers/mfd/wm8400-core.c   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/mfd/da903x.c +1 -1
index 7283d88..e5ffe56 100644
@@ -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)
 {
drivers/mfd/pcf50633-core.c +1 -1
index 082c197..8d3c38b 100644
@@ -705,5 +705,5 @@ MODULE_DESCRIPTION("I2C chip driver for NXP PCF50633 PMU");
 MODULE_AUTHOR("Harald Welte <[email protected]>");
 MODULE_LICENSE("GPL");
 
-module_init(pcf50633_init);
+subsys_initcall(pcf50633_init);
 module_exit(pcf50633_exit);
drivers/mfd/wm8400-core.c +1 -1
index 7c21bf7..ecfc8bb 100644
@@ -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)
 {
Signature · 5 lines
1.6.3.1

-- 
Intel Open Source Technology Centre
http://oss.intel.com/