summaryrefslogtreecommitdiff
path: root/drivers/input/mouse/synaptics_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/mouse/synaptics_usb.c')
-rw-r--r--drivers/input/mouse/synaptics_usb.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/input/mouse/synaptics_usb.c b/drivers/input/mouse/synaptics_usb.c
index e559a947bb57..3c5eaaa5d154 100644
--- a/drivers/input/mouse/synaptics_usb.c
+++ b/drivers/input/mouse/synaptics_usb.c
@@ -548,18 +548,7 @@ static struct usb_driver synusb_driver = {
.supports_autosuspend = 1,
};
-static int __init synusb_init(void)
-{
- return usb_register(&synusb_driver);
-}
-
-static void __exit synusb_exit(void)
-{
- usb_deregister(&synusb_driver);
-}
-
-module_init(synusb_init);
-module_exit(synusb_exit);
+module_usb_driver(synusb_driver);
MODULE_AUTHOR("Rob Miller <rob@inpharmatica.co.uk>, "
"Ron Lee <ron@debian.org>, "