* [PATCH] regulator: make sure the regulator is available prior to the consumers.
@ 2010-06-10 8:53 sonic zhang
2010-06-10 11:49 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: sonic zhang @ 2010-06-10 8:53 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood; +Cc: Linux Kernel, uclinux-dist-devel
>From 5a71b38961b0889a239842defd733774ed3d9cdf Mon Sep 17 00:00:00 2001
From: Sonic Zhang <sonic.zhang@analog.com>
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.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
---
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 0451c30..03969d3 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)
{
--
1.6.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] regulator: make sure the regulator is available prior to the consumers.
2010-06-10 8:53 [PATCH] regulator: make sure the regulator is available prior to the consumers sonic zhang
@ 2010-06-10 11:49 ` Mark Brown
2010-06-15 10:46 ` Liam Girdwood
0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2010-06-10 11:49 UTC (permalink / raw)
To: sonic zhang; +Cc: Liam Girdwood, Linux Kernel, uclinux-dist-devel
On Thu, Jun 10, 2010 at 04:53:47PM +0800, sonic zhang wrote:
> >From 5a71b38961b0889a239842defd733774ed3d9cdf Mon Sep 17 00:00:00 2001
> From: Sonic Zhang <sonic.zhang@analog.com>
> 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.
>
> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] regulator: make sure the regulator is available prior to the consumers.
2010-06-10 11:49 ` Mark Brown
@ 2010-06-15 10:46 ` Liam Girdwood
0 siblings, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2010-06-15 10:46 UTC (permalink / raw)
To: Mark Brown, sonic zhang; +Cc: Linux Kernel, uclinux-dist-devel
On Thu, 2010-06-10 at 12:49 +0100, Mark Brown wrote:
> On Thu, Jun 10, 2010 at 04:53:47PM +0800, sonic zhang wrote:
> > >From 5a71b38961b0889a239842defd733774ed3d9cdf Mon Sep 17 00:00:00 2001
> > From: Sonic Zhang <sonic.zhang@analog.com>
> > 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.
> >
> > Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
>
> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Applied.
Thanks
Liam
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-15 10:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-10 8:53 [PATCH] regulator: make sure the regulator is available prior to the consumers sonic zhang
2010-06-10 11:49 ` Mark Brown
2010-06-15 10:46 ` Liam Girdwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox