summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/synaptics_usb.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2012-03-16 23:05:44 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-03-16 23:06:34 -0700
commit4a53383565e340254479ce4d47bc181884ddf6c3 (patch)
tree6678fa987358a5613905ba321652edc793323590 /drivers/input/mouse/synaptics_usb.c
parent1b92c1cf6b638e7cbe9fdaac3f6efb8874f5cc02 (diff)
Input: synaptics_usb - switch to module_usb_driver()
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
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 e559a947bb5..3c5eaaa5d15 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>, "