From: David Brownell Date: Tue, 30 Sep 2008 18:43:00 +0000 (+0300) Subject: Move I2C driver model init earlier in the boot sequence X-Git-Tag: v2.6.27-omap1~110 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d4ada6ae322905aa273fddb9cde28e7de1aef222;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Felipe Balbi Signed-off-by: Jean Delvare Signed-off-by: Tony Lindgren --- diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index b346a687ab5..f5201083bdc 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -978,7 +978,7 @@ static void __exit i2c_exit(void) bus_unregister(&i2c_bus_type); } -subsys_initcall(i2c_init); +postcore_initcall(i2c_init); module_exit(i2c_exit); /* ----------------------------------------------------