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

HID: steelseries: use module_hid_driver() to simplify the code

module_hid_driver() makes the code simpler by eliminating
boilerplate code..
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent fdc5663c
...@@ -378,16 +378,5 @@ static struct hid_driver steelseries_srws1_driver = { ...@@ -378,16 +378,5 @@ static struct hid_driver steelseries_srws1_driver = {
.report_fixup = steelseries_srws1_report_fixup .report_fixup = steelseries_srws1_report_fixup
}; };
static int __init steelseries_srws1_init(void) module_hid_driver(steelseries_srws1_driver);
{
return hid_register_driver(&steelseries_srws1_driver);
}
static void __exit steelseries_srws1_exit(void)
{
hid_unregister_driver(&steelseries_srws1_driver);
}
module_init(steelseries_srws1_init);
module_exit(steelseries_srws1_exit);
MODULE_LICENSE("GPL"); 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