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 0d5da82f0ff7..3b017bbd2a22 100644 --- a/drivers/net/usb/smsc75xx.c +++ b/drivers/net/usb/smsc75xx.c | |||
@@ -1238,17 +1238,7 @@ static struct usb_driver smsc75xx_driver = { | |||
1238 | .disconnect = usbnet_disconnect, | 1238 | .disconnect = usbnet_disconnect, |
1239 | }; | 1239 | }; |
1240 | 1240 | ||
1241 | static int __init smsc75xx_init(void) | 1241 | module_usb_driver(smsc75xx_driver); |
1242 | { | ||
1243 | return usb_register(&smsc75xx_driver); | ||
1244 | } | ||
1245 | module_init(smsc75xx_init); | ||
1246 | |||
1247 | static void __exit smsc75xx_exit(void) | ||
1248 | { | ||
1249 | usb_deregister(&smsc75xx_driver); | ||
1250 | } | ||
1251 | module_exit(smsc75xx_exit); | ||
1252 | 1242 | ||
1253 | MODULE_AUTHOR("Nancy Lin"); | 1243 | MODULE_AUTHOR("Nancy Lin"); |
1254 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); | 1244 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); |