Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -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");