Commit fda2f4af authored by Fabio Estevam's avatar Fabio Estevam Committed by Jean Delvare

i2c-smbus: Use module_i2c_driver()

Using module_i2c_driver() makes the code smaller and cleaner.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 9cd3f2e8
...@@ -245,18 +245,7 @@ int i2c_handle_smbus_alert(struct i2c_client *ara) ...@@ -245,18 +245,7 @@ int i2c_handle_smbus_alert(struct i2c_client *ara)
} }
EXPORT_SYMBOL_GPL(i2c_handle_smbus_alert); EXPORT_SYMBOL_GPL(i2c_handle_smbus_alert);
static int __init i2c_smbus_init(void) module_i2c_driver(smbalert_driver);
{
return i2c_add_driver(&smbalert_driver);
}
static void __exit i2c_smbus_exit(void)
{
i2c_del_driver(&smbalert_driver);
}
module_init(i2c_smbus_init);
module_exit(i2c_smbus_exit);
MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>");
MODULE_DESCRIPTION("SMBus protocol extensions support"); MODULE_DESCRIPTION("SMBus protocol extensions support");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment