diff options
Diffstat (limited to 'drivers/uwb/i1480')
| -rw-r--r-- | drivers/uwb/i1480/dfu/dfu.c | 1 | ||||
| -rw-r--r-- | drivers/uwb/i1480/dfu/usb.c | 22 | ||||
| -rw-r--r-- | drivers/uwb/i1480/i1480-est.c | 2 | 
3 files changed, 4 insertions, 21 deletions
diff --git a/drivers/uwb/i1480/dfu/dfu.c b/drivers/uwb/i1480/dfu/dfu.c index da7b1d08003..b08d1c2ee3f 100644 --- a/drivers/uwb/i1480/dfu/dfu.c +++ b/drivers/uwb/i1480/dfu/dfu.c @@ -33,6 +33,7 @@  #include <linux/device.h>  #include <linux/uwb.h>  #include <linux/random.h> +#include <linux/export.h>  /*   * i1480_rceb_check - Check RCEB for expected field values diff --git a/drivers/uwb/i1480/dfu/usb.c b/drivers/uwb/i1480/dfu/usb.c index ba8664328af..2bfc846ac07 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)   *   * Data buffers to USB cannot be on the stack or in vmalloc'ed areas,   * so we copy it to the local i1480 buffer before proceeding. In any - * case, we have a max size we can send, soooo. + * case, we have a max size we can send.   */  static  int i1480_usb_write(struct i1480 *i1480, u32 memory_address, @@ -451,25 +451,7 @@ static struct usb_driver i1480_dfu_driver = {  	.disconnect =	NULL,  }; - -/* - * Initialize the i1480 DFU driver. - * - * We also need to register our function for guessing event sizes. - */ -static int __init i1480_dfu_driver_init(void) -{ -	return usb_register(&i1480_dfu_driver); -} -module_init(i1480_dfu_driver_init); - - -static void __exit i1480_dfu_driver_exit(void) -{ -	usb_deregister(&i1480_dfu_driver); -} -module_exit(i1480_dfu_driver_exit); - +module_usb_driver(i1480_dfu_driver);  MODULE_AUTHOR("Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>");  MODULE_DESCRIPTION("Intel Wireless UWB Link 1480 firmware uploader for USB"); diff --git a/drivers/uwb/i1480/i1480-est.c b/drivers/uwb/i1480/i1480-est.c index f2eb4d8b76c..d5de5e131d4 100644 --- a/drivers/uwb/i1480/i1480-est.c +++ b/drivers/uwb/i1480/i1480-est.c @@ -91,7 +91,7 @@ MODULE_LICENSE("GPL");   *   * [so we are loaded when this kind device is connected]   */ -static struct usb_device_id i1480_est_id_table[] = { +static struct usb_device_id __used i1480_est_id_table[] = {  	{ USB_DEVICE(0x8086, 0xdf3b), },  	{ USB_DEVICE(0x8086, 0x0c3b), },  	{ },  | 
