diff options
Diffstat (limited to 'drivers/usb/misc/cypress_cy7c63.c')
-rw-r--r-- | drivers/usb/misc/cypress_cy7c63.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/usb/misc/cypress_cy7c63.c b/drivers/usb/misc/cypress_cy7c63.c index 9251773ecef4..3f7c1a92579f 100644 --- a/drivers/usb/misc/cypress_cy7c63.c +++ b/drivers/usb/misc/cypress_cy7c63.c | |||
@@ -271,27 +271,7 @@ static struct usb_driver cypress_driver = { | |||
271 | .id_table = cypress_table, | 271 | .id_table = cypress_table, |
272 | }; | 272 | }; |
273 | 273 | ||
274 | static int __init cypress_init(void) | 274 | module_usb_driver(cypress_driver); |
275 | { | ||
276 | int result; | ||
277 | |||
278 | /* register this driver with the USB subsystem */ | ||
279 | result = usb_register(&cypress_driver); | ||
280 | if (result) | ||
281 | printk(KERN_ERR KBUILD_MODNAME ": usb_register failed! " | ||
282 | "Error number: %d\n", result); | ||
283 | |||
284 | return result; | ||
285 | } | ||
286 | |||
287 | static void __exit cypress_exit(void) | ||
288 | { | ||
289 | /* deregister this driver with the USB subsystem */ | ||
290 | usb_deregister(&cypress_driver); | ||
291 | } | ||
292 | |||
293 | module_init(cypress_init); | ||
294 | module_exit(cypress_exit); | ||
295 | 275 | ||
296 | MODULE_AUTHOR(DRIVER_AUTHOR); | 276 | MODULE_AUTHOR(DRIVER_AUTHOR); |
297 | MODULE_DESCRIPTION(DRIVER_DESC); | 277 | MODULE_DESCRIPTION(DRIVER_DESC); |