mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
smb347-charger: Convert to use module_i2c_driver()
This reduces the amount of boilerplate code in the driver and makes it a bit simpler. Signed-off-by: Mika Westerberg <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
e6fe3597fa
commit
b75ef1d807
1 changed files with 1 additions and 11 deletions
|
|
@ -1285,17 +1285,7 @@ static struct i2c_driver smb347_driver = {
|
|||
.id_table = smb347_id,
|
||||
};
|
||||
|
||||
static int __init smb347_init(void)
|
||||
{
|
||||
return i2c_add_driver(&smb347_driver);
|
||||
}
|
||||
module_init(smb347_init);
|
||||
|
||||
static void __exit smb347_exit(void)
|
||||
{
|
||||
i2c_del_driver(&smb347_driver);
|
||||
}
|
||||
module_exit(smb347_exit);
|
||||
module_i2c_driver(smb347_driver);
|
||||
|
||||
MODULE_AUTHOR("Bruce E. Robertson <[email protected]>");
|
||||
MODULE_AUTHOR("Mika Westerberg <[email protected]>");
|
||||
|
|
|
|||
Loading…
Reference in a new issue