提交 2e911767 编写于 作者: P Peter Meerwald 提交者: Bryan Wu

leds: convert tca6507 driver to module_i2c_driver()

Signed-off-by: NPeter Meerwald <p.meerwald@bct-electronic.com>
Cc: NeilBrown <neilb@suse.de>
Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
上级 7d84f66f
......@@ -758,18 +758,7 @@ static struct i2c_driver tca6507_driver = {
.id_table = tca6507_id,
};
static int __init tca6507_leds_init(void)
{
return i2c_add_driver(&tca6507_driver);
}
static void __exit tca6507_leds_exit(void)
{
i2c_del_driver(&tca6507_driver);
}
module_init(tca6507_leds_init);
module_exit(tca6507_leds_exit);
module_i2c_driver(tca6507_driver);
MODULE_AUTHOR("NeilBrown <neilb@suse.de>");
MODULE_DESCRIPTION("TCA6507 LED/GPO driver");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册