HID: steelseries: use module_hid_driver() to simplify the code
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>
This commit is contained in:
parent
fdc5663c1b
commit
bb64469af5
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue