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>
This commit is contained in:
parent
9032eabdd3
commit
032fa16d45
@ -1305,17 +1305,7 @@ static struct i2c_driver twl_driver = {
|
|||||||
.remove = twl_remove,
|
.remove = twl_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init twl_init(void)
|
module_i2c_driver(twl_driver);
|
||||||
{
|
|
||||||
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_AUTHOR("Texas Instruments, Inc.");
|
MODULE_AUTHOR("Texas Instruments, Inc.");
|
||||||
MODULE_DESCRIPTION("I2C Core interface for TWL");
|
MODULE_DESCRIPTION("I2C Core interface for TWL");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user