aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2011-01-11 00:25:09 -0500
committerBen Dooks <ben-linux@fluff.org>2011-01-12 17:23:08 -0500
commit74f56c4ad4e4627862bddb0b8c3ab394e3c004f7 (patch)
tree4bc0b2f3e9a756cfb40d6077393c6b5cea9d1170 /drivers/i2c
parent540ac5553e8169413a90a8e68b3a10f801640eb7 (diff)
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-bfin-twi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-bfin-twi.c b/drivers/i2c/busses/i2c-bfin-twi.c
index 1ee9d5a3192..52b545a795f 100644
--- a/drivers/i2c/busses/i2c-bfin-twi.c
+++ b/drivers/i2c/busses/i2c-bfin-twi.c
@@ -782,7 +782,7 @@ static void __exit i2c_bfin_twi_exit(void)
782 platform_driver_unregister(&i2c_bfin_twi_driver); 782 platform_driver_unregister(&i2c_bfin_twi_driver);
783} 783}
784 784
785module_init(i2c_bfin_twi_init); 785subsys_initcall(i2c_bfin_twi_init);
786module_exit(i2c_bfin_twi_exit); 786module_exit(i2c_bfin_twi_exit);
787 787
788MODULE_AUTHOR("Bryan Wu, Sonic Zhang"); 788MODULE_AUTHOR("Bryan Wu, Sonic Zhang");