diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-17 07:05:44 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-17 07:06:34 +0100 |
commit | 4a53383565e340254479ce4d47bc181884ddf6c3 (patch) | |
tree | 6678fa987358a5613905ba321652edc793323590 /drivers/input/mouse | |
parent | Input: convert I2C drivers to use module_i2c_driver() (diff) | |
download | linux-4a53383565e340254479ce4d47bc181884ddf6c3.tar.xz linux-4a53383565e340254479ce4d47bc181884ddf6c3.zip |
Input: synaptics_usb - switch to module_usb_driver()
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mouse')
-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>, " |