linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] HID: corsair: Convert to use module_hid_driver
@ 2015-12-16  8:56 Axel Lin
  2015-12-20 11:08 ` Clément VUCHENER
  2015-12-28 12:12 ` Jiri Kosina
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2015-12-16  8:56 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Clément Vuchener, Benjamin Tissoires, linux-input

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/hid/hid-corsair.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/hid/hid-corsair.c b/drivers/hid/hid-corsair.c
index bcefb9e..5855196 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");
-- 
2.1.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-28 12:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-16  8:56 [PATCH] HID: corsair: Convert to use module_hid_driver Axel Lin
2015-12-20 11:08 ` Clément VUCHENER
2015-12-28 12:12 ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).