Hi David,

On Wed, 24 Sep 2008 09:15:39 -0700, David Brownell wrote:
> From: David Brownell <[EMAIL PROTECTED]>
> 
> 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 <[EMAIL PROTECTED]>
> ---
>  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
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c

Reply via email to