diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2010-06-10 04:50:20 -0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-08-11 06:38:00 -0400 |
commit | 839b8362a78e02d123f6ac586349b357136a733f (patch) | |
tree | 66854a7ab9c547618b019ba99af67559313eba21 /drivers/regulator | |
parent | 8b385d9b97a63ba621342858f9921324032a9167 (diff) |
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 <sonic.zhang@analog.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/ad5398.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
274 | { | 274 | { |
275 | return i2c_add_driver(&ad5398_driver); | 275 | return i2c_add_driver(&ad5398_driver); |
276 | } | 276 | } |
277 | module_init(ad5398_init); | 277 | subsys_initcall(ad5398_init); |
278 | 278 | ||
279 | static void __exit ad5398_exit(void) | 279 | static void __exit ad5398_exit(void) |
280 | { | 280 | { |