diff options
Diffstat (limited to 'drivers/net/usb/ipheth.c')
-rw-r--r-- | drivers/net/usb/ipheth.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c index 13c1f044b40d..08a4df238796 100644 --- a/drivers/net/usb/ipheth.c +++ b/drivers/net/usb/ipheth.c | |||
@@ -543,25 +543,7 @@ static struct usb_driver ipheth_driver = { | |||
543 | .id_table = ipheth_table, | 543 | .id_table = ipheth_table, |
544 | }; | 544 | }; |
545 | 545 | ||
546 | static int __init ipheth_init(void) | 546 | module_usb_driver(ipheth_driver); |
547 | { | ||
548 | int retval; | ||
549 | |||
550 | retval = usb_register(&ipheth_driver); | ||
551 | if (retval) { | ||
552 | err("usb_register failed: %d", retval); | ||
553 | return retval; | ||
554 | } | ||
555 | return 0; | ||
556 | } | ||
557 | |||
558 | static void __exit ipheth_exit(void) | ||
559 | { | ||
560 | usb_deregister(&ipheth_driver); | ||
561 | } | ||
562 | |||
563 | module_init(ipheth_init); | ||
564 | module_exit(ipheth_exit); | ||
565 | 547 | ||
566 | MODULE_AUTHOR("Diego Giagio <diego@giagio.com>"); | 548 | MODULE_AUTHOR("Diego Giagio <diego@giagio.com>"); |
567 | MODULE_DESCRIPTION("Apple iPhone USB Ethernet driver"); | 549 | MODULE_DESCRIPTION("Apple iPhone USB Ethernet driver"); |