Commit e3fed748 authored by Axel Lin's avatar Axel Lin Committed by Jiri Kosina

HID: corsair: Convert to use module_hid_driver

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarClément Vuchener <clement.vuchener@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 25364a9e
......@@ -655,18 +655,7 @@ static struct hid_driver corsair_driver = {
.input_mapping = corsair_input_mapping,
};
static int __init corsair_init(void)
{
return hid_register_driver(&corsair_driver);
}
static void corsair_exit(void)
{
hid_unregister_driver(&corsair_driver);
}
module_init(corsair_init);
module_exit(corsair_exit);
module_hid_driver(corsair_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Clement Vuchener");
......
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