diff options
Diffstat (limited to 'drivers/net/usb/smsc75xx.c')
-rw-r--r-- | drivers/net/usb/smsc75xx.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c index 22a7cf951e72..9741b24f0668 100644 --- a/drivers/net/usb/smsc75xx.c +++ b/drivers/net/usb/smsc75xx.c | |||
@@ -1236,17 +1236,7 @@ static struct usb_driver smsc75xx_driver = { | |||
1236 | .disconnect = usbnet_disconnect, | 1236 | .disconnect = usbnet_disconnect, |
1237 | }; | 1237 | }; |
1238 | 1238 | ||
1239 | static int __init smsc75xx_init(void) | 1239 | module_usb_driver(smsc75xx_driver); |
1240 | { | ||
1241 | return usb_register(&smsc75xx_driver); | ||
1242 | } | ||
1243 | module_init(smsc75xx_init); | ||
1244 | |||
1245 | static void __exit smsc75xx_exit(void) | ||
1246 | { | ||
1247 | usb_deregister(&smsc75xx_driver); | ||
1248 | } | ||
1249 | module_exit(smsc75xx_exit); | ||
1250 | 1240 | ||
1251 | MODULE_AUTHOR("Nancy Lin"); | 1241 | MODULE_AUTHOR("Nancy Lin"); |
1252 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); | 1242 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); |