Skip to contentSkip to conversation

regulator: move bq24022 init back to module_init instead of subsys_initcall

PATCH Applied Philipp Zabel 2 participants 2 messages Jan 18, 2009 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regulator: move bq24022 init back to module_init instead of subsys_initcall

This workaround was needed when regulator/ was not linked before both power/ and usb/otg/ in drivers/Makefile. Now that it is even linked before mfd/, this patch makes sure that bq24022 isn't probed before the GPIO expander is set up.

---
 drivers/regulator/bq24022.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
drivers/regulator/bq24022.c +1 -5
index ebae7c0..21682d5 100644
@@ -165,11 +165,7 @@ static void __exit bq24022_exit(void)
 	platform_driver_unregister(&bq24022_driver);
 }
 
-/*
- * make sure this is probed before gpio_vbus and pda_power,
- * but after asic3 or other GPIO expander drivers.
- */
-subsys_initcall(bq24022_init);
+module_init(bq24022_init);
 module_exit(bq24022_exit);
 
 MODULE_AUTHOR("Philipp Zabel");
Signature · 1 line
1.5.6.5
#1 lore raw
Quoted 10 lines · Philipp Zabel

This workaround was needed when regulator/ was not linked before both power/ and usb/otg/ in drivers/Makefile. Now that it is even linked before mfd/, this patch makes sure that bq24022 isn't probed before the GPIO expander is set up.

---
 drivers/regulator/bq24022.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

Applied.

Thanks

Liam