From: Sonic Zhang Date: Thu, 10 Jun 2010 08:50:20 +0000 (+0800) Subject: regulator: make sure the regulator is available prior to the consumers. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=839b8362a78e02d123f6ac586349b357136a733f;p=linux-beck.git 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 Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/drivers/regulator/ad5398.c b/drivers/regulator/ad5398.c index 6de6bdaeff7c..d59d2f2314af 100644 --- a/drivers/regulator/ad5398.c +++ b/drivers/regulator/ad5398.c @@ -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) {