From 839b8362a78e02d123f6ac586349b357136a733f Mon Sep 17 00:00:00 2001 From: Sonic Zhang Date: Thu, 10 Jun 2010 16:50:20 +0800 Subject: 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 --- drivers/regulator/ad5398.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/regulator/ad5398.c') 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 @@ 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) { -- cgit v1.1