Commit a10f9e7c authored by David Brownell's avatar David Brownell Committed by Jean Delvare
Browse files

i2c: Do earlier driver model init

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: default avatarDavid Brownell <>
Signed-off-by: default avatarJean Delvare <>
parent f1453ee3
......@@ -986,7 +986,10 @@ static void __exit i2c_exit(void)
/* We must initialize early, because some subsystems register i2c drivers
* in subsys_initcall() code, but are linked (and initialized) before i2c.
/* ----------------------------------------------------
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment