mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 11:07:46 +00:00
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
07cd29d765
commit
8244ac043c
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user