]> git.karo-electronics.de Git - linux-beck.git/commitdiff
i2c-bfin-twi: move setup to the earlier subsys initcall
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 11 Jan 2011 05:25:09 +0000 (00:25 -0500)
committerBen Dooks <ben-linux@fluff.org>
Wed, 12 Jan 2011 22:23:08 +0000 (22:23 +0000)
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>
drivers/i2c/busses/i2c-bfin-twi.c

index 1ee9d5a31928b4811a861c42c1078af36c816332..52b545a795f2ae6e533bf0920385623e8e6e1b04 100644 (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");