Skip to content

Commit

Permalink
HID: steelseries: use module_hid_driver() to simplify the code
Browse files Browse the repository at this point in the history
module_hid_driver() makes the code simpler by eliminating
boilerplate code..

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Wei Yongjun authored and Jiri Kosina committed Mar 18, 2013
1 parent fdc5663 commit bb64469
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/hid/hid-steelseries.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,16 +378,5 @@ static struct hid_driver steelseries_srws1_driver = {
.report_fixup = steelseries_srws1_report_fixup
};

static int __init steelseries_srws1_init(void)
{
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_hid_driver(steelseries_srws1_driver);
MODULE_LICENSE("GPL");

0 comments on commit bb64469

Please sign in to comment.