regulator: make sure the regulator is available prior to the consumers.
Some systems are likely to want this to be subsys_initcall() to
make sure the regulator is available prior to the consumers.
Signed-off-by: Sonic Zhang <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
diff --git a/drivers/regulator/ad5398.c b/drivers/regulator/ad5398.c
index 6de6bda..d59d2f2 100644
--- a/drivers/regulator/ad5398.c
+++ b/drivers/regulator/ad5398.c
@@ -274,7 +274,7 @@
{
return i2c_add_driver(&ad5398_driver);
}
-module_init(ad5398_init);
+subsys_initcall(ad5398_init);
static void __exit ad5398_exit(void)
{