regulator: make sure the regulator is available prior to the consumers.
authorSonic Zhang <sonic.zhang@analog.com>
Thu, 10 Jun 2010 08:50:20 +0000 (16:50 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 11 Aug 2010 10:38:00 +0000 (11:38 +0100)
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 <sonic.zhang@analog.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/ad5398.c

index 6de6bda..d59d2f2 100644 (file)
@@ -274,7 +274,7 @@ static int __init ad5398_init(void)
 {
        return i2c_add_driver(&ad5398_driver);
 }
-module_init(ad5398_init);
+subsys_initcall(ad5398_init);
 
 static void __exit ad5398_exit(void)
 {