HID: corsair: Convert to use module_hid_driver
Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Clément Vuchener <clement.vuchener@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
25364a9e54
commit
e3fed74894
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue