Commit c99f8188 authored by Wei Yongjun's avatar Wei Yongjun Committed by Jiri Kosina

HID: holtek-mouse: use module_hid_driver() to simplify the code

module_hid_driver() makes the code simpler by eliminating
boilerplate code.
Reported-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 40d3597f
......@@ -73,16 +73,5 @@ static struct hid_driver holtek_mouse_driver = {
.report_fixup = holtek_mouse_report_fixup,
};
static int __init holtek_mouse_init(void)
{
return hid_register_driver(&holtek_mouse_driver);
}
static void __exit holtek_mouse_exit(void)
{
hid_unregister_driver(&holtek_mouse_driver);
}
module_exit(holtek_mouse_exit);
module_init(holtek_mouse_init);
module_hid_driver(holtek_mouse_driver);
MODULE_LICENSE("GPL");
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