dect
/
linux-2.6
Archived
13
0
Fork 0

i2c-bfin-twi: move setup to the earlier subsys initcall

Some systems using this bus sometimes have very basic devices such as
regulators on the bus, so the I2C bus master needs to be loaded early.
This also matches the behavior of many other I2C bus master drivers.
Therefore initialize via subsys_initcall().

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
This commit is contained in:
Michael Hennerich 2011-01-11 00:25:09 -05:00 committed by Ben Dooks
parent 540ac5553e
commit 74f56c4ad4
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ static void __exit i2c_bfin_twi_exit(void)
platform_driver_unregister(&i2c_bfin_twi_driver);
}
module_init(i2c_bfin_twi_init);
subsys_initcall(i2c_bfin_twi_init);
module_exit(i2c_bfin_twi_exit);
MODULE_AUTHOR("Bryan Wu, Sonic Zhang");