HID: Use module_hid_driver macro
[deliverable/linux.git] / drivers / hid / hid-chicony.c
index a2abb8e15727dfd3f0e0d37734e95096ff8c9db8..b613d5a7968457b5719acaf57d9c0bc98b47ed29 100644 (file)
@@ -70,17 +70,6 @@ static struct hid_driver ch_driver = {
        .id_table = ch_devices,
        .input_mapping = ch_input_mapping,
 };
+module_hid_driver(ch_driver);
 
-static int __init ch_init(void)
-{
-       return hid_register_driver(&ch_driver);
-}
-
-static void __exit ch_exit(void)
-{
-       hid_unregister_driver(&ch_driver);
-}
-
-module_init(ch_init);
-module_exit(ch_exit);
 MODULE_LICENSE("GPL");
This page took 0.029844 seconds and 5 git commands to generate.