Skip to contentSkip to conversation

regulator: make sure the regulator is available prior to the consumers.

PATCH Applied sonic zhang 3 participants 3 messages Jun 10, 2010 – Jun 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regulator: make sure the regulator is available prior to the consumers.

Quoted 1 line

From 5a71b38961b0889a239842defd733774ed3d9cdf Mon Sep 17 00:00:00 2001

From: Sonic Zhang <[email protected]>
Date: Thu, 10 Jun 2010 16:50:20 +0800
Subject: [PATCH] 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.

---
 drivers/regulator/ad5398.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/ad5398.c +1 -1
index 0451c30..03969d3 100644
@@ -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)
 {
Signature · 1 line
1.6.0
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · sonic zhang
Quoted 1 line

From 5a71b38961b0889a239842defd733774ed3d9cdf Mon Sep 17 00:00:00 2001

From: Sonic Zhang <[email protected]>
Date: Thu, 10 Jun 2010 16:50:20 +0800
Subject: [PATCH] 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.

#2 lore raw
Quoted 6 lines · Mark Brown
Quoted 5 lines · sonic zhang
Quoted 1 line

From 5a71b38961b0889a239842defd733774ed3d9cdf Mon Sep 17 00:00:00 2001

From: Sonic Zhang <[email protected]>
Date: Thu, 10 Jun 2010 16:50:20 +0800
Subject: [PATCH] regulator: make sure the regulator is available prior to the consumers.

Quoted 6 lines
Quoted 4 lines

Some systems are likely to want this to be subsys_initcall() to make sure the regulator is available prior to the consumers.

Applied.

Thanks

Liam

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk