diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-12-16 16:56:39 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-12-28 13:10:58 +0100 |
commit | e3fed74894c725fb85d7315aa0c01df9b59b7a9d (patch) | |
tree | eafe58130f9815016e7ce46b0b564a423902b53f /drivers/hid | |
parent | 25364a9e54fb8296837061bf684b76d20eec01fb (diff) | |
download | talos-obmc-linux-e3fed74894c725fb85d7315aa0c01df9b59b7a9d.tar.gz talos-obmc-linux-e3fed74894c725fb85d7315aa0c01df9b59b7a9d.zip |
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>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-corsair.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hid/hid-corsair.c b/drivers/hid/hid-corsair.c index bcefb9ebb026..58551964ce86 100644 --- a/drivers/hid/hid-corsair.c +++ b/drivers/hid/hid-corsair.c @@ -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"); |