HID: Use module_hid_driver macro
[deliverable/linux.git] / drivers / hid / hid-holtek-kbd.c
index e0a5d1739fc38ae5707fc9deff77d8e62ffde958..6e1a4a4fc0c109f7bf60083963d8c239a10939cf 100644 (file)
@@ -167,17 +167,6 @@ static struct hid_driver holtek_kbd_driver = {
        .report_fixup = holtek_kbd_report_fixup,
        .probe = holtek_kbd_probe
 };
+module_hid_driver(holtek_kbd_driver);
 
-static int __init holtek_kbd_init(void)
-{
-       return hid_register_driver(&holtek_kbd_driver);
-}
-
-static void __exit holtek_kbd_exit(void)
-{
-       hid_unregister_driver(&holtek_kbd_driver);
-}
-
-module_exit(holtek_kbd_exit);
-module_init(holtek_kbd_init);
 MODULE_LICENSE("GPL");
This page took 0.024122 seconds and 5 git commands to generate.