HID: Use module_hid_driver macro
[deliverable/linux.git] / drivers / hid / hid-keytouch.c
index 07cd825f6f018c9799e71dea19343a1012c2d17c..3074671b7d6abb3d6ba9ac335e97e6468888aa06 100644 (file)
@@ -49,18 +49,7 @@ static struct hid_driver keytouch_driver = {
        .id_table = keytouch_devices,
        .report_fixup = keytouch_report_fixup,
 };
+module_hid_driver(keytouch_driver);
 
-static int __init keytouch_init(void)
-{
-       return hid_register_driver(&keytouch_driver);
-}
-
-static void __exit keytouch_exit(void)
-{
-       hid_unregister_driver(&keytouch_driver);
-}
-
-module_init(keytouch_init);
-module_exit(keytouch_exit);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Jiri Kosina");
This page took 0.02533 seconds and 5 git commands to generate.