diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2013-04-23 16:19:10 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-11 19:27:51 +0200 |
commit | 032fa16d453c562c93b118e1c3e65f183c5f55cc (patch) | |
tree | 41c362593ba05d54c9f846664b5f7711fe55e0e3 /drivers/mfd/twl-core.c | |
parent | 9032eabdd3fcfc00aa513a9eef54002cbabb8c9a (diff) | |
download | linux-032fa16d453c562c93b118e1c3e65f183c5f55cc.tar.bz2 |
mfd: twl-core: Convert to module_i2c_driver()
Shift TWL initialization to module/device init layer, because I2C now is
not initialized on subsys init layer and shifted to module/device init
layer instead.
The I2C <--> TWL dependency should be resolved in drivers/Makefile now.
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/twl-core.c')
-rw-r--r-- | drivers/mfd/twl-core.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index 89ab4d970643..8d9bc10c5312 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -1305,17 +1305,7 @@ static struct i2c_driver twl_driver = { .remove = twl_remove, }; -static int __init twl_init(void) -{ - return i2c_add_driver(&twl_driver); -} -subsys_initcall(twl_init); - -static void __exit twl_exit(void) -{ - i2c_del_driver(&twl_driver); -} -module_exit(twl_exit); +module_i2c_driver(twl_driver); MODULE_AUTHOR("Texas Instruments, Inc."); MODULE_DESCRIPTION("I2C Core interface for TWL"); |