diff options
Diffstat (limited to 'drivers/uwb')
-rw-r--r-- | drivers/uwb/hwa-rc.c | 12 | ||||
-rw-r--r-- | drivers/uwb/i1480/dfu/usb.c | 22 |
2 files changed, 3 insertions, 31 deletions
diff --git a/drivers/uwb/hwa-rc.c b/drivers/uwb/hwa-rc.c index 2babcd4fbfc1..66797e9c5010 100644 --- a/drivers/uwb/hwa-rc.c +++ b/drivers/uwb/hwa-rc.c | |||
@@ -914,17 +914,7 @@ static struct usb_driver hwarc_driver = { | |||
914 | .post_reset = hwarc_post_reset, | 914 | .post_reset = hwarc_post_reset, |
915 | }; | 915 | }; |
916 | 916 | ||
917 | static int __init hwarc_driver_init(void) | 917 | module_usb_driver(hwarc_driver); |
918 | { | ||
919 | return usb_register(&hwarc_driver); | ||
920 | } | ||
921 | module_init(hwarc_driver_init); | ||
922 | |||
923 | static void __exit hwarc_driver_exit(void) | ||
924 | { | ||
925 | usb_deregister(&hwarc_driver); | ||
926 | } | ||
927 | module_exit(hwarc_driver_exit); | ||
928 | 918 | ||
929 | MODULE_AUTHOR("Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>"); | 919 | MODULE_AUTHOR("Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>"); |
930 | MODULE_DESCRIPTION("Host Wireless Adapter Radio Control Driver"); | 920 | MODULE_DESCRIPTION("Host Wireless Adapter Radio Control Driver"); |
diff --git a/drivers/uwb/i1480/dfu/usb.c b/drivers/uwb/i1480/dfu/usb.c index ba8664328afa..2bfc846ac071 100644 --- a/drivers/uwb/i1480/dfu/usb.c +++ b/drivers/uwb/i1480/dfu/usb.c | |||
@@ -104,7 +104,7 @@ void i1480_usb_destroy(struct i1480_usb *i1480_usb) | |||
104 | * | 104 | * |
105 | * Data buffers to USB cannot be on the stack or in vmalloc'ed areas, | 105 | * Data buffers to USB cannot be on the stack or in vmalloc'ed areas, |
106 | * so we copy it to the local i1480 buffer before proceeding. In any | 106 | * so we copy it to the local i1480 buffer before proceeding. In any |
107 | * case, we have a max size we can send, soooo. | 107 | * case, we have a max size we can send. |
108 | */ | 108 | */ |
109 | static | 109 | static |
110 | int i1480_usb_write(struct i1480 *i1480, u32 memory_address, | 110 | int i1480_usb_write(struct i1480 *i1480, u32 memory_address, |
@@ -451,25 +451,7 @@ static struct usb_driver i1480_dfu_driver = { | |||
451 | .disconnect = NULL, | 451 | .disconnect = NULL, |
452 | }; | 452 | }; |
453 | 453 | ||
454 | 454 | module_usb_driver(i1480_dfu_driver); | |
455 | /* | ||
456 | * Initialize the i1480 DFU driver. | ||
457 | * | ||
458 | * We also need to register our function for guessing event sizes. | ||
459 | */ | ||
460 | static int __init i1480_dfu_driver_init(void) | ||
461 | { | ||
462 | return usb_register(&i1480_dfu_driver); | ||
463 | } | ||
464 | module_init(i1480_dfu_driver_init); | ||
465 | |||
466 | |||
467 | static void __exit i1480_dfu_driver_exit(void) | ||
468 | { | ||
469 | usb_deregister(&i1480_dfu_driver); | ||
470 | } | ||
471 | module_exit(i1480_dfu_driver_exit); | ||
472 | |||
473 | 455 | ||
474 | MODULE_AUTHOR("Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>"); | 456 | MODULE_AUTHOR("Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>"); |
475 | MODULE_DESCRIPTION("Intel Wireless UWB Link 1480 firmware uploader for USB"); | 457 | MODULE_DESCRIPTION("Intel Wireless UWB Link 1480 firmware uploader for USB"); |