diff options
Diffstat (limited to 'drivers/hid/hid-magicmouse.c')
-rw-r--r-- | drivers/hid/hid-magicmouse.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c index 25ddf3e3aec6..f7f113ba083e 100644 --- a/drivers/hid/hid-magicmouse.c +++ b/drivers/hid/hid-magicmouse.c | |||
@@ -569,23 +569,6 @@ static struct hid_driver magicmouse_driver = { | |||
569 | .raw_event = magicmouse_raw_event, | 569 | .raw_event = magicmouse_raw_event, |
570 | .input_mapping = magicmouse_input_mapping, | 570 | .input_mapping = magicmouse_input_mapping, |
571 | }; | 571 | }; |
572 | module_hid_driver(magicmouse_driver); | ||
572 | 573 | ||
573 | static int __init magicmouse_init(void) | ||
574 | { | ||
575 | int ret; | ||
576 | |||
577 | ret = hid_register_driver(&magicmouse_driver); | ||
578 | if (ret) | ||
579 | pr_err("can't register magicmouse driver\n"); | ||
580 | |||
581 | return ret; | ||
582 | } | ||
583 | |||
584 | static void __exit magicmouse_exit(void) | ||
585 | { | ||
586 | hid_unregister_driver(&magicmouse_driver); | ||
587 | } | ||
588 | |||
589 | module_init(magicmouse_init); | ||
590 | module_exit(magicmouse_exit); | ||
591 | MODULE_LICENSE("GPL"); | 574 | MODULE_LICENSE("GPL"); |