diff options
Diffstat (limited to 'drivers/usb/misc/trancevibrator.c')
-rw-r--r-- | drivers/usb/misc/trancevibrator.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/drivers/usb/misc/trancevibrator.c b/drivers/usb/misc/trancevibrator.c index f63776a48e2a..741efed4a236 100644 --- a/drivers/usb/misc/trancevibrator.c +++ b/drivers/usb/misc/trancevibrator.c | |||
@@ -137,26 +137,7 @@ static struct usb_driver tv_driver = { | |||
137 | .id_table = id_table, | 137 | .id_table = id_table, |
138 | }; | 138 | }; |
139 | 139 | ||
140 | static int __init tv_init(void) | 140 | module_usb_driver(tv_driver); |
141 | { | ||
142 | int retval = usb_register(&tv_driver); | ||
143 | if (retval) { | ||
144 | err("usb_register failed. Error number %d", retval); | ||
145 | return retval; | ||
146 | } | ||
147 | |||
148 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
149 | DRIVER_DESC "\n"); | ||
150 | return 0; | ||
151 | } | ||
152 | |||
153 | static void __exit tv_exit(void) | ||
154 | { | ||
155 | usb_deregister(&tv_driver); | ||
156 | } | ||
157 | |||
158 | module_init (tv_init); | ||
159 | module_exit (tv_exit); | ||
160 | 141 | ||
161 | MODULE_AUTHOR(DRIVER_AUTHOR); | 142 | MODULE_AUTHOR(DRIVER_AUTHOR); |
162 | MODULE_DESCRIPTION(DRIVER_DESC); | 143 | MODULE_DESCRIPTION(DRIVER_DESC); |