diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-06 14:42:52 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-06 14:42:52 -0500 |
commit | ff4b8a57f0aaa2882d444ca44b2b9b333d22a4df (patch) | |
tree | d851c923f85566572112d4c0f884cff388a3cc05 /drivers/net/usb | |
parent | 805a6af8dba5dfdd35ec35dc52ec0122400b2610 (diff) | |
parent | ea04018e6bc5ddb2f0466c0e5b986bd4901b7e8e (diff) |
Merge branch 'driver-core-next' into Linux 3.2
This resolves the conflict in the arch/arm/mach-s3c64xx/s3c6400.c file,
and it fixes the build error in the arch/x86/kernel/microcode_core.c
file, that the merge did not catch.
The microcode_core.c patch was provided by Stephen Rothwell
<sfr@canb.auug.org.au> who was invaluable in the merge issues involved
with the large sysdev removal process in the driver-core tree.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/asix.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/catc.c | 17 | ||||
-rw-r--r-- | drivers/net/usb/cdc-phonet.c | 13 | ||||
-rw-r--r-- | drivers/net/usb/cdc_eem.c | 13 | ||||
-rw-r--r-- | drivers/net/usb/cdc_ether.c | 19 | ||||
-rw-r--r-- | drivers/net/usb/cdc_ncm.c | 15 | ||||
-rw-r--r-- | drivers/net/usb/cdc_subset.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/cx82310_eth.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/dm9601.c | 13 | ||||
-rw-r--r-- | drivers/net/usb/gl620a.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/int51x1.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/ipheth.c | 20 | ||||
-rw-r--r-- | drivers/net/usb/kalmia.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/kaweth.c | 30 | ||||
-rw-r--r-- | drivers/net/usb/lg-vl600.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/mcs7830.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/net1080.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/plusb.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/rndis_host.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/rtl8150.c | 15 | ||||
-rw-r--r-- | drivers/net/usb/sierra_net.c | 19 | ||||
-rw-r--r-- | drivers/net/usb/smsc75xx.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/smsc95xx.c | 12 | ||||
-rw-r--r-- | drivers/net/usb/zaurus.c | 12 |
24 files changed, 30 insertions, 312 deletions
diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c index e95f0e60a9bc..823715ac1277 100644 --- a/drivers/net/usb/asix.c +++ b/drivers/net/usb/asix.c | |||
@@ -1674,17 +1674,7 @@ static struct usb_driver asix_driver = { | |||
1674 | .supports_autosuspend = 1, | 1674 | .supports_autosuspend = 1, |
1675 | }; | 1675 | }; |
1676 | 1676 | ||
1677 | static int __init asix_init(void) | 1677 | module_usb_driver(asix_driver); |
1678 | { | ||
1679 | return usb_register(&asix_driver); | ||
1680 | } | ||
1681 | module_init(asix_init); | ||
1682 | |||
1683 | static void __exit asix_exit(void) | ||
1684 | { | ||
1685 | usb_deregister(&asix_driver); | ||
1686 | } | ||
1687 | module_exit(asix_exit); | ||
1688 | 1678 | ||
1689 | MODULE_AUTHOR("David Hollis"); | 1679 | MODULE_AUTHOR("David Hollis"); |
1690 | MODULE_VERSION(DRIVER_VERSION); | 1680 | MODULE_VERSION(DRIVER_VERSION); |
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c index a68272c93381..182cfb4aeb1d 100644 --- a/drivers/net/usb/catc.c +++ b/drivers/net/usb/catc.c | |||
@@ -949,19 +949,4 @@ static struct usb_driver catc_driver = { | |||
949 | .id_table = catc_id_table, | 949 | .id_table = catc_id_table, |
950 | }; | 950 | }; |
951 | 951 | ||
952 | static int __init catc_init(void) | 952 | module_usb_driver(catc_driver); |
953 | { | ||
954 | int result = usb_register(&catc_driver); | ||
955 | if (result == 0) | ||
956 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
957 | DRIVER_DESC "\n"); | ||
958 | return result; | ||
959 | } | ||
960 | |||
961 | static void __exit catc_exit(void) | ||
962 | { | ||
963 | usb_deregister(&catc_driver); | ||
964 | } | ||
965 | |||
966 | module_init(catc_init); | ||
967 | module_exit(catc_exit); | ||
diff --git a/drivers/net/usb/cdc-phonet.c b/drivers/net/usb/cdc-phonet.c index a60d0069cc45..30aedcd55975 100644 --- a/drivers/net/usb/cdc-phonet.c +++ b/drivers/net/usb/cdc-phonet.c | |||
@@ -457,18 +457,7 @@ static struct usb_driver usbpn_driver = { | |||
457 | .id_table = usbpn_ids, | 457 | .id_table = usbpn_ids, |
458 | }; | 458 | }; |
459 | 459 | ||
460 | static int __init usbpn_init(void) | 460 | module_usb_driver(usbpn_driver); |
461 | { | ||
462 | return usb_register(&usbpn_driver); | ||
463 | } | ||
464 | |||
465 | static void __exit usbpn_exit(void) | ||
466 | { | ||
467 | usb_deregister(&usbpn_driver); | ||
468 | } | ||
469 | |||
470 | module_init(usbpn_init); | ||
471 | module_exit(usbpn_exit); | ||
472 | 461 | ||
473 | MODULE_AUTHOR("Remi Denis-Courmont"); | 462 | MODULE_AUTHOR("Remi Denis-Courmont"); |
474 | MODULE_DESCRIPTION("USB CDC Phonet host interface"); | 463 | MODULE_DESCRIPTION("USB CDC Phonet host interface"); |
diff --git a/drivers/net/usb/cdc_eem.c b/drivers/net/usb/cdc_eem.c index 882f53f708df..439690be519f 100644 --- a/drivers/net/usb/cdc_eem.c +++ b/drivers/net/usb/cdc_eem.c | |||
@@ -369,18 +369,7 @@ static struct usb_driver eem_driver = { | |||
369 | .resume = usbnet_resume, | 369 | .resume = usbnet_resume, |
370 | }; | 370 | }; |
371 | 371 | ||
372 | 372 | module_usb_driver(eem_driver); | |
373 | static int __init eem_init(void) | ||
374 | { | ||
375 | return usb_register(&eem_driver); | ||
376 | } | ||
377 | module_init(eem_init); | ||
378 | |||
379 | static void __exit eem_exit(void) | ||
380 | { | ||
381 | usb_deregister(&eem_driver); | ||
382 | } | ||
383 | module_exit(eem_exit); | ||
384 | 373 | ||
385 | MODULE_AUTHOR("Omar Laazimani <omar.oberthur@gmail.com>"); | 374 | MODULE_AUTHOR("Omar Laazimani <omar.oberthur@gmail.com>"); |
386 | MODULE_DESCRIPTION("USB CDC EEM"); | 375 | MODULE_DESCRIPTION("USB CDC EEM"); |
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index 99ed6eb4dfaf..41a61efc331e 100644 --- a/drivers/net/usb/cdc_ether.c +++ b/drivers/net/usb/cdc_ether.c | |||
@@ -425,6 +425,9 @@ int usbnet_cdc_bind(struct usbnet *dev, struct usb_interface *intf) | |||
425 | int status; | 425 | int status; |
426 | struct cdc_state *info = (void *) &dev->data; | 426 | struct cdc_state *info = (void *) &dev->data; |
427 | 427 | ||
428 | BUILD_BUG_ON((sizeof(((struct usbnet *)0)->data) | ||
429 | < sizeof(struct cdc_state))); | ||
430 | |||
428 | status = usbnet_generic_cdc_bind(dev, intf); | 431 | status = usbnet_generic_cdc_bind(dev, intf); |
429 | if (status < 0) | 432 | if (status < 0) |
430 | return status; | 433 | return status; |
@@ -615,21 +618,7 @@ static struct usb_driver cdc_driver = { | |||
615 | .supports_autosuspend = 1, | 618 | .supports_autosuspend = 1, |
616 | }; | 619 | }; |
617 | 620 | ||
618 | 621 | module_usb_driver(cdc_driver); | |
619 | static int __init cdc_init(void) | ||
620 | { | ||
621 | BUILD_BUG_ON((sizeof(((struct usbnet *)0)->data) | ||
622 | < sizeof(struct cdc_state))); | ||
623 | |||
624 | return usb_register(&cdc_driver); | ||
625 | } | ||
626 | module_init(cdc_init); | ||
627 | |||
628 | static void __exit cdc_exit(void) | ||
629 | { | ||
630 | usb_deregister(&cdc_driver); | ||
631 | } | ||
632 | module_exit(cdc_exit); | ||
633 | 622 | ||
634 | MODULE_AUTHOR("David Brownell"); | 623 | MODULE_AUTHOR("David Brownell"); |
635 | MODULE_DESCRIPTION("USB CDC Ethernet devices"); | 624 | MODULE_DESCRIPTION("USB CDC Ethernet devices"); |
diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c index f06fb78383a1..9904b7ebca2d 100644 --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_ncm.c | |||
@@ -1232,20 +1232,7 @@ static struct ethtool_ops cdc_ncm_ethtool_ops = { | |||
1232 | .nway_reset = usbnet_nway_reset, | 1232 | .nway_reset = usbnet_nway_reset, |
1233 | }; | 1233 | }; |
1234 | 1234 | ||
1235 | static int __init cdc_ncm_init(void) | 1235 | module_usb_driver(cdc_ncm_driver); |
1236 | { | ||
1237 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION "\n"); | ||
1238 | return usb_register(&cdc_ncm_driver); | ||
1239 | } | ||
1240 | |||
1241 | module_init(cdc_ncm_init); | ||
1242 | |||
1243 | static void __exit cdc_ncm_exit(void) | ||
1244 | { | ||
1245 | usb_deregister(&cdc_ncm_driver); | ||
1246 | } | ||
1247 | |||
1248 | module_exit(cdc_ncm_exit); | ||
1249 | 1236 | ||
1250 | MODULE_AUTHOR("Hans Petter Selasky"); | 1237 | MODULE_AUTHOR("Hans Petter Selasky"); |
1251 | MODULE_DESCRIPTION("USB CDC NCM host driver"); | 1238 | MODULE_DESCRIPTION("USB CDC NCM host driver"); |
diff --git a/drivers/net/usb/cdc_subset.c b/drivers/net/usb/cdc_subset.c index fc5f13d47ad9..b403d934e4e3 100644 --- a/drivers/net/usb/cdc_subset.c +++ b/drivers/net/usb/cdc_subset.c | |||
@@ -338,17 +338,7 @@ static struct usb_driver cdc_subset_driver = { | |||
338 | .id_table = products, | 338 | .id_table = products, |
339 | }; | 339 | }; |
340 | 340 | ||
341 | static int __init cdc_subset_init(void) | 341 | module_usb_driver(cdc_subset_driver); |
342 | { | ||
343 | return usb_register(&cdc_subset_driver); | ||
344 | } | ||
345 | module_init(cdc_subset_init); | ||
346 | |||
347 | static void __exit cdc_subset_exit(void) | ||
348 | { | ||
349 | usb_deregister(&cdc_subset_driver); | ||
350 | } | ||
351 | module_exit(cdc_subset_exit); | ||
352 | 342 | ||
353 | MODULE_AUTHOR("David Brownell"); | 343 | MODULE_AUTHOR("David Brownell"); |
354 | MODULE_DESCRIPTION("Simple 'CDC Subset' USB networking links"); | 344 | MODULE_DESCRIPTION("Simple 'CDC Subset' USB networking links"); |
diff --git a/drivers/net/usb/cx82310_eth.c b/drivers/net/usb/cx82310_eth.c index 8969f124c18c..0e0531356e62 100644 --- a/drivers/net/usb/cx82310_eth.c +++ b/drivers/net/usb/cx82310_eth.c | |||
@@ -329,17 +329,7 @@ static struct usb_driver cx82310_driver = { | |||
329 | .resume = usbnet_resume, | 329 | .resume = usbnet_resume, |
330 | }; | 330 | }; |
331 | 331 | ||
332 | static int __init cx82310_init(void) | 332 | module_usb_driver(cx82310_driver); |
333 | { | ||
334 | return usb_register(&cx82310_driver); | ||
335 | } | ||
336 | module_init(cx82310_init); | ||
337 | |||
338 | static void __exit cx82310_exit(void) | ||
339 | { | ||
340 | usb_deregister(&cx82310_driver); | ||
341 | } | ||
342 | module_exit(cx82310_exit); | ||
343 | 333 | ||
344 | MODULE_AUTHOR("Ondrej Zary"); | 334 | MODULE_AUTHOR("Ondrej Zary"); |
345 | MODULE_DESCRIPTION("Conexant CX82310-based ADSL router USB ethernet driver"); | 335 | MODULE_DESCRIPTION("Conexant CX82310-based ADSL router USB ethernet driver"); |
diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c index fbc0e4def767..b97226318ea5 100644 --- a/drivers/net/usb/dm9601.c +++ b/drivers/net/usb/dm9601.c | |||
@@ -672,18 +672,7 @@ static struct usb_driver dm9601_driver = { | |||
672 | .resume = usbnet_resume, | 672 | .resume = usbnet_resume, |
673 | }; | 673 | }; |
674 | 674 | ||
675 | static int __init dm9601_init(void) | 675 | module_usb_driver(dm9601_driver); |
676 | { | ||
677 | return usb_register(&dm9601_driver); | ||
678 | } | ||
679 | |||
680 | static void __exit dm9601_exit(void) | ||
681 | { | ||
682 | usb_deregister(&dm9601_driver); | ||
683 | } | ||
684 | |||
685 | module_init(dm9601_init); | ||
686 | module_exit(dm9601_exit); | ||
687 | 676 | ||
688 | MODULE_AUTHOR("Peter Korsgaard <jacmet@sunsite.dk>"); | 677 | MODULE_AUTHOR("Peter Korsgaard <jacmet@sunsite.dk>"); |
689 | MODULE_DESCRIPTION("Davicom DM9601 USB 1.1 ethernet devices"); | 678 | MODULE_DESCRIPTION("Davicom DM9601 USB 1.1 ethernet devices"); |
diff --git a/drivers/net/usb/gl620a.c b/drivers/net/usb/gl620a.c index c4cfd1dea881..38266bdae26b 100644 --- a/drivers/net/usb/gl620a.c +++ b/drivers/net/usb/gl620a.c | |||
@@ -227,17 +227,7 @@ static struct usb_driver gl620a_driver = { | |||
227 | .resume = usbnet_resume, | 227 | .resume = usbnet_resume, |
228 | }; | 228 | }; |
229 | 229 | ||
230 | static int __init usbnet_init(void) | 230 | module_usb_driver(gl620a_driver); |
231 | { | ||
232 | return usb_register(&gl620a_driver); | ||
233 | } | ||
234 | module_init(usbnet_init); | ||
235 | |||
236 | static void __exit usbnet_exit(void) | ||
237 | { | ||
238 | usb_deregister(&gl620a_driver); | ||
239 | } | ||
240 | module_exit(usbnet_exit); | ||
241 | 231 | ||
242 | MODULE_AUTHOR("Jiun-Jie Huang"); | 232 | MODULE_AUTHOR("Jiun-Jie Huang"); |
243 | MODULE_DESCRIPTION("GL620-USB-A Host-to-Host Link cables"); | 233 | MODULE_DESCRIPTION("GL620-USB-A Host-to-Host Link cables"); |
diff --git a/drivers/net/usb/int51x1.c b/drivers/net/usb/int51x1.c index 131ac6c172f6..12a22a453ff1 100644 --- a/drivers/net/usb/int51x1.c +++ b/drivers/net/usb/int51x1.c | |||
@@ -238,17 +238,7 @@ static struct usb_driver int51x1_driver = { | |||
238 | .resume = usbnet_resume, | 238 | .resume = usbnet_resume, |
239 | }; | 239 | }; |
240 | 240 | ||
241 | static int __init int51x1_init(void) | 241 | module_usb_driver(int51x1_driver); |
242 | { | ||
243 | return usb_register(&int51x1_driver); | ||
244 | } | ||
245 | module_init(int51x1_init); | ||
246 | |||
247 | static void __exit int51x1_exit(void) | ||
248 | { | ||
249 | usb_deregister(&int51x1_driver); | ||
250 | } | ||
251 | module_exit(int51x1_exit); | ||
252 | 242 | ||
253 | MODULE_AUTHOR("Peter Holik"); | 243 | MODULE_AUTHOR("Peter Holik"); |
254 | MODULE_DESCRIPTION("Intellon usb powerline adapter"); | 244 | MODULE_DESCRIPTION("Intellon usb powerline adapter"); |
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"); |
diff --git a/drivers/net/usb/kalmia.c b/drivers/net/usb/kalmia.c index 5a6d0f88f43b..7562649b3d6b 100644 --- a/drivers/net/usb/kalmia.c +++ b/drivers/net/usb/kalmia.c | |||
@@ -375,17 +375,7 @@ static struct usb_driver kalmia_driver = { | |||
375 | .resume = usbnet_resume | 375 | .resume = usbnet_resume |
376 | }; | 376 | }; |
377 | 377 | ||
378 | static int __init kalmia_init(void) | 378 | module_usb_driver(kalmia_driver); |
379 | { | ||
380 | return usb_register(&kalmia_driver); | ||
381 | } | ||
382 | module_init( kalmia_init); | ||
383 | |||
384 | static void __exit kalmia_exit(void) | ||
385 | { | ||
386 | usb_deregister(&kalmia_driver); | ||
387 | } | ||
388 | module_exit( kalmia_exit); | ||
389 | 379 | ||
390 | MODULE_AUTHOR("Marius Bjoernstad Kotsbak <marius@kotsbak.com>"); | 380 | MODULE_AUTHOR("Marius Bjoernstad Kotsbak <marius@kotsbak.com>"); |
391 | MODULE_DESCRIPTION("Samsung Kalmia USB network driver"); | 381 | MODULE_DESCRIPTION("Samsung Kalmia USB network driver"); |
diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c index 582ca2dfa5f9..d034d9c42548 100644 --- a/drivers/net/usb/kaweth.c +++ b/drivers/net/usb/kaweth.c | |||
@@ -1324,32 +1324,4 @@ static int kaweth_internal_control_msg(struct usb_device *usb_dev, | |||
1324 | } | 1324 | } |
1325 | } | 1325 | } |
1326 | 1326 | ||
1327 | 1327 | module_usb_driver(kaweth_driver); | |
1328 | /**************************************************************** | ||
1329 | * kaweth_init | ||
1330 | ****************************************************************/ | ||
1331 | static int __init kaweth_init(void) | ||
1332 | { | ||
1333 | dbg("Driver loading"); | ||
1334 | return usb_register(&kaweth_driver); | ||
1335 | } | ||
1336 | |||
1337 | /**************************************************************** | ||
1338 | * kaweth_exit | ||
1339 | ****************************************************************/ | ||
1340 | static void __exit kaweth_exit(void) | ||
1341 | { | ||
1342 | usb_deregister(&kaweth_driver); | ||
1343 | } | ||
1344 | |||
1345 | module_init(kaweth_init); | ||
1346 | module_exit(kaweth_exit); | ||
1347 | |||
1348 | |||
1349 | |||
1350 | |||
1351 | |||
1352 | |||
1353 | |||
1354 | |||
1355 | |||
diff --git a/drivers/net/usb/lg-vl600.c b/drivers/net/usb/lg-vl600.c index 9c26c6390d69..45a981fde43f 100644 --- a/drivers/net/usb/lg-vl600.c +++ b/drivers/net/usb/lg-vl600.c | |||
@@ -346,17 +346,7 @@ static struct usb_driver lg_vl600_driver = { | |||
346 | .resume = usbnet_resume, | 346 | .resume = usbnet_resume, |
347 | }; | 347 | }; |
348 | 348 | ||
349 | static int __init vl600_init(void) | 349 | module_usb_driver(lg_vl600_driver); |
350 | { | ||
351 | return usb_register(&lg_vl600_driver); | ||
352 | } | ||
353 | module_init(vl600_init); | ||
354 | |||
355 | static void __exit vl600_exit(void) | ||
356 | { | ||
357 | usb_deregister(&lg_vl600_driver); | ||
358 | } | ||
359 | module_exit(vl600_exit); | ||
360 | 350 | ||
361 | MODULE_AUTHOR("Anrzej Zaborowski"); | 351 | MODULE_AUTHOR("Anrzej Zaborowski"); |
362 | MODULE_DESCRIPTION("LG-VL600 modem's ethernet link"); | 352 | MODULE_DESCRIPTION("LG-VL600 modem's ethernet link"); |
diff --git a/drivers/net/usb/mcs7830.c b/drivers/net/usb/mcs7830.c index db2cb74bf854..a29aa9cf9f6e 100644 --- a/drivers/net/usb/mcs7830.c +++ b/drivers/net/usb/mcs7830.c | |||
@@ -692,17 +692,7 @@ static struct usb_driver mcs7830_driver = { | |||
692 | .reset_resume = mcs7830_reset_resume, | 692 | .reset_resume = mcs7830_reset_resume, |
693 | }; | 693 | }; |
694 | 694 | ||
695 | static int __init mcs7830_init(void) | 695 | module_usb_driver(mcs7830_driver); |
696 | { | ||
697 | return usb_register(&mcs7830_driver); | ||
698 | } | ||
699 | module_init(mcs7830_init); | ||
700 | |||
701 | static void __exit mcs7830_exit(void) | ||
702 | { | ||
703 | usb_deregister(&mcs7830_driver); | ||
704 | } | ||
705 | module_exit(mcs7830_exit); | ||
706 | 696 | ||
707 | MODULE_DESCRIPTION("USB to network adapter MCS7830)"); | 697 | MODULE_DESCRIPTION("USB to network adapter MCS7830)"); |
708 | MODULE_LICENSE("GPL"); | 698 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/net/usb/net1080.c b/drivers/net/usb/net1080.c index 01db4602a39e..83f965cb69e7 100644 --- a/drivers/net/usb/net1080.c +++ b/drivers/net/usb/net1080.c | |||
@@ -589,17 +589,7 @@ static struct usb_driver net1080_driver = { | |||
589 | .resume = usbnet_resume, | 589 | .resume = usbnet_resume, |
590 | }; | 590 | }; |
591 | 591 | ||
592 | static int __init net1080_init(void) | 592 | module_usb_driver(net1080_driver); |
593 | { | ||
594 | return usb_register(&net1080_driver); | ||
595 | } | ||
596 | module_init(net1080_init); | ||
597 | |||
598 | static void __exit net1080_exit(void) | ||
599 | { | ||
600 | usb_deregister(&net1080_driver); | ||
601 | } | ||
602 | module_exit(net1080_exit); | ||
603 | 593 | ||
604 | MODULE_AUTHOR("David Brownell"); | 594 | MODULE_AUTHOR("David Brownell"); |
605 | MODULE_DESCRIPTION("NetChip 1080 based USB Host-to-Host Links"); | 595 | MODULE_DESCRIPTION("NetChip 1080 based USB Host-to-Host Links"); |
diff --git a/drivers/net/usb/plusb.c b/drivers/net/usb/plusb.c index 217aec8a768f..b2b035e29978 100644 --- a/drivers/net/usb/plusb.c +++ b/drivers/net/usb/plusb.c | |||
@@ -154,17 +154,7 @@ static struct usb_driver plusb_driver = { | |||
154 | .resume = usbnet_resume, | 154 | .resume = usbnet_resume, |
155 | }; | 155 | }; |
156 | 156 | ||
157 | static int __init plusb_init(void) | 157 | module_usb_driver(plusb_driver); |
158 | { | ||
159 | return usb_register(&plusb_driver); | ||
160 | } | ||
161 | module_init(plusb_init); | ||
162 | |||
163 | static void __exit plusb_exit(void) | ||
164 | { | ||
165 | usb_deregister(&plusb_driver); | ||
166 | } | ||
167 | module_exit(plusb_exit); | ||
168 | 158 | ||
169 | MODULE_AUTHOR("David Brownell"); | 159 | MODULE_AUTHOR("David Brownell"); |
170 | MODULE_DESCRIPTION("Prolific PL-2301/2302/25A1 USB Host to Host Link Driver"); | 160 | MODULE_DESCRIPTION("Prolific PL-2301/2302/25A1 USB Host to Host Link Driver"); |
diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c index 255d6a424a6b..c8f1b5b3aff3 100644 --- a/drivers/net/usb/rndis_host.c +++ b/drivers/net/usb/rndis_host.c | |||
@@ -635,17 +635,7 @@ static struct usb_driver rndis_driver = { | |||
635 | .resume = usbnet_resume, | 635 | .resume = usbnet_resume, |
636 | }; | 636 | }; |
637 | 637 | ||
638 | static int __init rndis_init(void) | 638 | module_usb_driver(rndis_driver); |
639 | { | ||
640 | return usb_register(&rndis_driver); | ||
641 | } | ||
642 | module_init(rndis_init); | ||
643 | |||
644 | static void __exit rndis_exit(void) | ||
645 | { | ||
646 | usb_deregister(&rndis_driver); | ||
647 | } | ||
648 | module_exit(rndis_exit); | ||
649 | 639 | ||
650 | MODULE_AUTHOR("David Brownell"); | 640 | MODULE_AUTHOR("David Brownell"); |
651 | MODULE_DESCRIPTION("USB Host side RNDIS driver"); | 641 | MODULE_DESCRIPTION("USB Host side RNDIS driver"); |
diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c index bf8c84d0adf2..0710b4ca9252 100644 --- a/drivers/net/usb/rtl8150.c +++ b/drivers/net/usb/rtl8150.c | |||
@@ -978,20 +978,7 @@ static struct usb_driver rtl8150_driver = { | |||
978 | .resume = rtl8150_resume | 978 | .resume = rtl8150_resume |
979 | }; | 979 | }; |
980 | 980 | ||
981 | static int __init usb_rtl8150_init(void) | 981 | module_usb_driver(rtl8150_driver); |
982 | { | ||
983 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
984 | DRIVER_DESC "\n"); | ||
985 | return usb_register(&rtl8150_driver); | ||
986 | } | ||
987 | |||
988 | static void __exit usb_rtl8150_exit(void) | ||
989 | { | ||
990 | usb_deregister(&rtl8150_driver); | ||
991 | } | ||
992 | |||
993 | module_init(usb_rtl8150_init); | ||
994 | module_exit(usb_rtl8150_exit); | ||
995 | 982 | ||
996 | MODULE_AUTHOR(DRIVER_AUTHOR); | 983 | MODULE_AUTHOR(DRIVER_AUTHOR); |
997 | MODULE_DESCRIPTION(DRIVER_DESC); | 984 | MODULE_DESCRIPTION(DRIVER_DESC); |
diff --git a/drivers/net/usb/sierra_net.c b/drivers/net/usb/sierra_net.c index ed1b43210584..e45dfdcb8718 100644 --- a/drivers/net/usb/sierra_net.c +++ b/drivers/net/usb/sierra_net.c | |||
@@ -900,6 +900,9 @@ struct sk_buff *sierra_net_tx_fixup(struct usbnet *dev, struct sk_buff *skb, | |||
900 | u16 len; | 900 | u16 len; |
901 | bool need_tail; | 901 | bool need_tail; |
902 | 902 | ||
903 | BUILD_BUG_ON(FIELD_SIZEOF(struct usbnet, data) | ||
904 | < sizeof(struct cdc_state)); | ||
905 | |||
903 | dev_dbg(&dev->udev->dev, "%s", __func__); | 906 | dev_dbg(&dev->udev->dev, "%s", __func__); |
904 | if (priv->link_up && check_ethip_packet(skb, dev) && is_ip(skb)) { | 907 | if (priv->link_up && check_ethip_packet(skb, dev) && is_ip(skb)) { |
905 | /* enough head room as is? */ | 908 | /* enough head room as is? */ |
@@ -981,21 +984,7 @@ static struct usb_driver sierra_net_driver = { | |||
981 | .no_dynamic_id = 1, | 984 | .no_dynamic_id = 1, |
982 | }; | 985 | }; |
983 | 986 | ||
984 | static int __init sierra_net_init(void) | 987 | module_usb_driver(sierra_net_driver); |
985 | { | ||
986 | BUILD_BUG_ON(FIELD_SIZEOF(struct usbnet, data) | ||
987 | < sizeof(struct cdc_state)); | ||
988 | |||
989 | return usb_register(&sierra_net_driver); | ||
990 | } | ||
991 | |||
992 | static void __exit sierra_net_exit(void) | ||
993 | { | ||
994 | usb_deregister(&sierra_net_driver); | ||
995 | } | ||
996 | |||
997 | module_exit(sierra_net_exit); | ||
998 | module_init(sierra_net_init); | ||
999 | 988 | ||
1000 | MODULE_AUTHOR(DRIVER_AUTHOR); | 989 | MODULE_AUTHOR(DRIVER_AUTHOR); |
1001 | MODULE_DESCRIPTION(DRIVER_DESC); | 990 | MODULE_DESCRIPTION(DRIVER_DESC); |
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c index a5b9b12ef268..e85840ee36e0 100644 --- a/drivers/net/usb/smsc75xx.c +++ b/drivers/net/usb/smsc75xx.c | |||
@@ -1237,17 +1237,7 @@ static struct usb_driver smsc75xx_driver = { | |||
1237 | .disconnect = usbnet_disconnect, | 1237 | .disconnect = usbnet_disconnect, |
1238 | }; | 1238 | }; |
1239 | 1239 | ||
1240 | static int __init smsc75xx_init(void) | 1240 | module_usb_driver(smsc75xx_driver); |
1241 | { | ||
1242 | return usb_register(&smsc75xx_driver); | ||
1243 | } | ||
1244 | module_init(smsc75xx_init); | ||
1245 | |||
1246 | static void __exit smsc75xx_exit(void) | ||
1247 | { | ||
1248 | usb_deregister(&smsc75xx_driver); | ||
1249 | } | ||
1250 | module_exit(smsc75xx_exit); | ||
1251 | 1241 | ||
1252 | MODULE_AUTHOR("Nancy Lin"); | 1242 | MODULE_AUTHOR("Nancy Lin"); |
1253 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); | 1243 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); |
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index eff67678c5a6..4a107610ac43 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c | |||
@@ -1297,17 +1297,7 @@ static struct usb_driver smsc95xx_driver = { | |||
1297 | .disconnect = usbnet_disconnect, | 1297 | .disconnect = usbnet_disconnect, |
1298 | }; | 1298 | }; |
1299 | 1299 | ||
1300 | static int __init smsc95xx_init(void) | 1300 | module_usb_driver(smsc95xx_driver); |
1301 | { | ||
1302 | return usb_register(&smsc95xx_driver); | ||
1303 | } | ||
1304 | module_init(smsc95xx_init); | ||
1305 | |||
1306 | static void __exit smsc95xx_exit(void) | ||
1307 | { | ||
1308 | usb_deregister(&smsc95xx_driver); | ||
1309 | } | ||
1310 | module_exit(smsc95xx_exit); | ||
1311 | 1301 | ||
1312 | MODULE_AUTHOR("Nancy Lin"); | 1302 | MODULE_AUTHOR("Nancy Lin"); |
1313 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); | 1303 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); |
diff --git a/drivers/net/usb/zaurus.c b/drivers/net/usb/zaurus.c index 1a2234c20514..f701d4127087 100644 --- a/drivers/net/usb/zaurus.c +++ b/drivers/net/usb/zaurus.c | |||
@@ -362,17 +362,7 @@ static struct usb_driver zaurus_driver = { | |||
362 | .resume = usbnet_resume, | 362 | .resume = usbnet_resume, |
363 | }; | 363 | }; |
364 | 364 | ||
365 | static int __init zaurus_init(void) | 365 | module_usb_driver(zaurus_driver); |
366 | { | ||
367 | return usb_register(&zaurus_driver); | ||
368 | } | ||
369 | module_init(zaurus_init); | ||
370 | |||
371 | static void __exit zaurus_exit(void) | ||
372 | { | ||
373 | usb_deregister(&zaurus_driver); | ||
374 | } | ||
375 | module_exit(zaurus_exit); | ||
376 | 366 | ||
377 | MODULE_AUTHOR("Pavel Machek, David Brownell"); | 367 | MODULE_AUTHOR("Pavel Machek, David Brownell"); |
378 | MODULE_DESCRIPTION("Sharp Zaurus PDA, and compatible products"); | 368 | MODULE_DESCRIPTION("Sharp Zaurus PDA, and compatible products"); |