diff options
Diffstat (limited to 'drivers/hid/usbhid/usbmouse.c')
-rw-r--r-- | drivers/hid/usbhid/usbmouse.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/hid/usbhid/usbmouse.c b/drivers/hid/usbhid/usbmouse.c index 79b2bf81a059..0f6be45d43d5 100644 --- a/drivers/hid/usbhid/usbmouse.c +++ b/drivers/hid/usbhid/usbmouse.c | |||
@@ -241,19 +241,4 @@ static struct usb_driver usb_mouse_driver = { | |||
241 | .id_table = usb_mouse_id_table, | 241 | .id_table = usb_mouse_id_table, |
242 | }; | 242 | }; |
243 | 243 | ||
244 | static int __init usb_mouse_init(void) | 244 | module_usb_driver(usb_mouse_driver); |
245 | { | ||
246 | int retval = usb_register(&usb_mouse_driver); | ||
247 | if (retval == 0) | ||
248 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
249 | DRIVER_DESC "\n"); | ||
250 | return retval; | ||
251 | } | ||
252 | |||
253 | static void __exit usb_mouse_exit(void) | ||
254 | { | ||
255 | usb_deregister(&usb_mouse_driver); | ||
256 | } | ||
257 | |||
258 | module_init(usb_mouse_init); | ||
259 | module_exit(usb_mouse_exit); | ||