Skip to content

Commit

Permalink
regulator: move bq24022 init back to module_init instead of subsys_in…
Browse files Browse the repository at this point in the history
…itcall

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.

Signed-off-by: Philipp Zabel <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
  • Loading branch information
pH5 authored and Liam Girdwood committed Jan 30, 2009
1 parent 33bfad5 commit 9bf503e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/regulator/bq24022.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,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");
Expand Down

0 comments on commit 9bf503e

Please sign in to comment.