diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-17 10:05:44 +0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-17 10:06:34 +0400 |
commit | 4a53383565e340254479ce4d47bc181884ddf6c3 (patch) | |
tree | 6678fa987358a5613905ba321652edc793323590 /drivers/input/mouse/synaptics_usb.c | |
parent | 1b92c1cf6b638e7cbe9fdaac3f6efb8874f5cc02 (diff) | |
download | linux-4a53383565e340254479ce4d47bc181884ddf6c3.tar.xz |
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.c | 13 |
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>, " |