提交 8244ac04 编写于 作者: W Wei Yongjun 提交者: Greg Kroah-Hartman

USB: misc: usb3503: use module_i2c_driver to simplify the code

Use the module_i2c_driver() macro to make the code smaller
and a bit simpler.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 07cd29d7
...@@ -307,18 +307,7 @@ static struct i2c_driver usb3503_driver = { ...@@ -307,18 +307,7 @@ static struct i2c_driver usb3503_driver = {
.id_table = usb3503_id, .id_table = usb3503_id,
}; };
static int __init usb3503_init(void) module_i2c_driver(usb3503_driver);
{
return i2c_add_driver(&usb3503_driver);
}
static void __exit usb3503_exit(void)
{
i2c_del_driver(&usb3503_driver);
}
module_init(usb3503_init);
module_exit(usb3503_exit);
MODULE_AUTHOR("Dongjin Kim <tobetter@gmail.com>"); MODULE_AUTHOR("Dongjin Kim <tobetter@gmail.com>");
MODULE_DESCRIPTION("USB3503 USB HUB driver"); MODULE_DESCRIPTION("USB3503 USB HUB driver");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册