HID: Use module_hid_driver macro
[deliverable/linux.git] / drivers / hid / hid-waltop.c
index bb536ab5941e413a7cbb624ef019d73aec847197..059931d7b3922ff064ea0f59b63f2d9b8d9ff745 100644 (file)
@@ -779,17 +779,6 @@ static struct hid_driver waltop_driver = {
        .report_fixup = waltop_report_fixup,
        .raw_event = waltop_raw_event,
 };
+module_hid_driver(waltop_driver);
 
-static int __init waltop_init(void)
-{
-       return hid_register_driver(&waltop_driver);
-}
-
-static void __exit waltop_exit(void)
-{
-       hid_unregister_driver(&waltop_driver);
-}
-
-module_init(waltop_init);
-module_exit(waltop_exit);
 MODULE_LICENSE("GPL");
This page took 0.035615 seconds and 5 git commands to generate.