From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: Re: [patch 2.6.27-rc7] i2c: do earlier driver model init Date: Tue, 30 Sep 2008 13:13:07 +0200 Message-ID: <20080930131307.5a1697bc@hyperion.delvare> References: <200809240915.39917.david-b@pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200809240915.39917.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Errors-To: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org To: David Brownell Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org List-Id: linux-i2c@vger.kernel.org Hi David, On Wed, 24 Sep 2008 09:15:39 -0700, David Brownell wrote: > From: David Brownell > > Move I2C driver model init earlier in the boot sequence. > > This avoids oopsing in statically linked systems when some > subsystems register I2C drivers in subsys_initcall() code, > but those subsystems are linked (and initialized) before I2C. > > Signed-off-by: David Brownell > --- > drivers/i2c/i2c-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/drivers/i2c/i2c-core.c > +++ b/drivers/i2c/i2c-core.c > @@ -1143,7 +1143,7 @@ static void __exit i2c_exit(void) > bus_unregister(&i2c_bus_type); > } > > -subsys_initcall(i2c_init); > +postcore_initcall(i2c_init); > module_exit(i2c_exit); > Patch applied, thanks. Will go in 2.6.28, NOT 2.6.27 (too late there for such a change.) -- Jean Delvare _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c