diff options
Diffstat (limited to 'drivers/usb/misc/usbsevseg.c')
-rw-r--r-- | drivers/usb/misc/usbsevseg.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/usb/misc/usbsevseg.c b/drivers/usb/misc/usbsevseg.c index 417b8f207e8..107bf13b1cf 100644 --- a/drivers/usb/misc/usbsevseg.c +++ b/drivers/usb/misc/usbsevseg.c | |||
@@ -437,23 +437,7 @@ static struct usb_driver sevseg_driver = { | |||
437 | .supports_autosuspend = 1, | 437 | .supports_autosuspend = 1, |
438 | }; | 438 | }; |
439 | 439 | ||
440 | static int __init usb_sevseg_init(void) | 440 | module_usb_driver(sevseg_driver); |
441 | { | ||
442 | int rc = 0; | ||
443 | |||
444 | rc = usb_register(&sevseg_driver); | ||
445 | if (rc) | ||
446 | err("usb_register failed. Error number %d", rc); | ||
447 | return rc; | ||
448 | } | ||
449 | |||
450 | static void __exit usb_sevseg_exit(void) | ||
451 | { | ||
452 | usb_deregister(&sevseg_driver); | ||
453 | } | ||
454 | |||
455 | module_init(usb_sevseg_init); | ||
456 | module_exit(usb_sevseg_exit); | ||
457 | 441 | ||
458 | MODULE_AUTHOR(DRIVER_AUTHOR); | 442 | MODULE_AUTHOR(DRIVER_AUTHOR); |
459 | MODULE_DESCRIPTION(DRIVER_DESC); | 443 | MODULE_DESCRIPTION(DRIVER_DESC); |