diff options
Diffstat (limited to 'drivers/uwb/i1480')
-rw-r--r-- | drivers/uwb/i1480/dfu/mac.c | 1 | ||||
-rw-r--r-- | drivers/uwb/i1480/dfu/usb.c | 13 | ||||
-rw-r--r-- | drivers/uwb/i1480/i1480u-wlp/lc.c | 1 | ||||
-rw-r--r-- | drivers/uwb/i1480/i1480u-wlp/netdev.c | 1 | ||||
-rw-r--r-- | drivers/uwb/i1480/i1480u-wlp/rx.c | 1 | ||||
-rw-r--r-- | drivers/uwb/i1480/i1480u-wlp/tx.c | 1 |
6 files changed, 13 insertions, 5 deletions
diff --git a/drivers/uwb/i1480/dfu/mac.c b/drivers/uwb/i1480/dfu/mac.c index 694d0daf88ab..6ec14f5fcde4 100644 --- a/drivers/uwb/i1480/dfu/mac.c +++ b/drivers/uwb/i1480/dfu/mac.c | |||
@@ -28,6 +28,7 @@ | |||
28 | */ | 28 | */ |
29 | #include <linux/delay.h> | 29 | #include <linux/delay.h> |
30 | #include <linux/firmware.h> | 30 | #include <linux/firmware.h> |
31 | #include <linux/slab.h> | ||
31 | #include <linux/uwb.h> | 32 | #include <linux/uwb.h> |
32 | #include "i1480-dfu.h" | 33 | #include "i1480-dfu.h" |
33 | 34 | ||
diff --git a/drivers/uwb/i1480/dfu/usb.c b/drivers/uwb/i1480/dfu/usb.c index 0bb665a0c024..ba8664328afa 100644 --- a/drivers/uwb/i1480/dfu/usb.c +++ b/drivers/uwb/i1480/dfu/usb.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <linux/module.h> | 37 | #include <linux/module.h> |
38 | #include <linux/usb.h> | 38 | #include <linux/usb.h> |
39 | #include <linux/interrupt.h> | 39 | #include <linux/interrupt.h> |
40 | #include <linux/slab.h> | ||
40 | #include <linux/delay.h> | 41 | #include <linux/delay.h> |
41 | #include <linux/uwb.h> | 42 | #include <linux/uwb.h> |
42 | #include <linux/usb/wusb.h> | 43 | #include <linux/usb/wusb.h> |
@@ -120,8 +121,7 @@ int i1480_usb_write(struct i1480 *i1480, u32 memory_address, | |||
120 | result = usb_control_msg( | 121 | result = usb_control_msg( |
121 | i1480_usb->usb_dev, usb_sndctrlpipe(i1480_usb->usb_dev, 0), | 122 | i1480_usb->usb_dev, usb_sndctrlpipe(i1480_usb->usb_dev, 0), |
122 | 0xf0, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, | 123 | 0xf0, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, |
123 | cpu_to_le16(memory_address & 0xffff), | 124 | memory_address, (memory_address >> 16), |
124 | cpu_to_le16((memory_address >> 16) & 0xffff), | ||
125 | i1480->cmd_buf, buffer_size, 100 /* FIXME: arbitrary */); | 125 | i1480->cmd_buf, buffer_size, 100 /* FIXME: arbitrary */); |
126 | if (result < 0) | 126 | if (result < 0) |
127 | break; | 127 | break; |
@@ -166,8 +166,7 @@ int i1480_usb_read(struct i1480 *i1480, u32 addr, size_t size) | |||
166 | result = usb_control_msg( | 166 | result = usb_control_msg( |
167 | i1480_usb->usb_dev, usb_rcvctrlpipe(i1480_usb->usb_dev, 0), | 167 | i1480_usb->usb_dev, usb_rcvctrlpipe(i1480_usb->usb_dev, 0), |
168 | 0xf0, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, | 168 | 0xf0, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, |
169 | cpu_to_le16(itr_addr & 0xffff), | 169 | itr_addr, (itr_addr >> 16), |
170 | cpu_to_le16((itr_addr >> 16) & 0xffff), | ||
171 | i1480->cmd_buf + itr, itr_size, | 170 | i1480->cmd_buf + itr, itr_size, |
172 | 100 /* FIXME: arbitrary */); | 171 | 100 /* FIXME: arbitrary */); |
173 | if (result < 0) { | 172 | if (result < 0) { |
@@ -413,6 +412,10 @@ error: | |||
413 | return result; | 412 | return result; |
414 | } | 413 | } |
415 | 414 | ||
415 | MODULE_FIRMWARE("i1480-pre-phy-0.0.bin"); | ||
416 | MODULE_FIRMWARE("i1480-usb-0.0.bin"); | ||
417 | MODULE_FIRMWARE("i1480-phy-0.0.bin"); | ||
418 | |||
416 | #define i1480_USB_DEV(v, p) \ | 419 | #define i1480_USB_DEV(v, p) \ |
417 | { \ | 420 | { \ |
418 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE \ | 421 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE \ |
@@ -430,7 +433,7 @@ error: | |||
430 | 433 | ||
431 | 434 | ||
432 | /** USB device ID's that we handle */ | 435 | /** USB device ID's that we handle */ |
433 | static struct usb_device_id i1480_usb_id_table[] = { | 436 | static const struct usb_device_id i1480_usb_id_table[] = { |
434 | i1480_USB_DEV(0x8086, 0xdf3b), | 437 | i1480_USB_DEV(0x8086, 0xdf3b), |
435 | i1480_USB_DEV(0x15a9, 0x0005), | 438 | i1480_USB_DEV(0x15a9, 0x0005), |
436 | i1480_USB_DEV(0x07d1, 0x3802), | 439 | i1480_USB_DEV(0x07d1, 0x3802), |
diff --git a/drivers/uwb/i1480/i1480u-wlp/lc.c b/drivers/uwb/i1480/i1480u-wlp/lc.c index f272dfe54d49..def778cf2216 100644 --- a/drivers/uwb/i1480/i1480u-wlp/lc.c +++ b/drivers/uwb/i1480/i1480u-wlp/lc.c | |||
@@ -55,6 +55,7 @@ | |||
55 | * is being removed. | 55 | * is being removed. |
56 | * i1480u_rm() | 56 | * i1480u_rm() |
57 | */ | 57 | */ |
58 | #include <linux/gfp.h> | ||
58 | #include <linux/if_arp.h> | 59 | #include <linux/if_arp.h> |
59 | #include <linux/etherdevice.h> | 60 | #include <linux/etherdevice.h> |
60 | 61 | ||
diff --git a/drivers/uwb/i1480/i1480u-wlp/netdev.c b/drivers/uwb/i1480/i1480u-wlp/netdev.c index b236e6969942..f98f6ce8b9e7 100644 --- a/drivers/uwb/i1480/i1480u-wlp/netdev.c +++ b/drivers/uwb/i1480/i1480u-wlp/netdev.c | |||
@@ -39,6 +39,7 @@ | |||
39 | * i1480u_set_config(): | 39 | * i1480u_set_config(): |
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include <linux/slab.h> | ||
42 | #include <linux/if_arp.h> | 43 | #include <linux/if_arp.h> |
43 | #include <linux/etherdevice.h> | 44 | #include <linux/etherdevice.h> |
44 | 45 | ||
diff --git a/drivers/uwb/i1480/i1480u-wlp/rx.c b/drivers/uwb/i1480/i1480u-wlp/rx.c index 25a2758beb61..d4e51e108aa4 100644 --- a/drivers/uwb/i1480/i1480u-wlp/rx.c +++ b/drivers/uwb/i1480/i1480u-wlp/rx.c | |||
@@ -64,6 +64,7 @@ | |||
64 | * | 64 | * |
65 | */ | 65 | */ |
66 | 66 | ||
67 | #include <linux/gfp.h> | ||
67 | #include <linux/netdevice.h> | 68 | #include <linux/netdevice.h> |
68 | #include <linux/etherdevice.h> | 69 | #include <linux/etherdevice.h> |
69 | #include "i1480u-wlp.h" | 70 | #include "i1480u-wlp.h" |
diff --git a/drivers/uwb/i1480/i1480u-wlp/tx.c b/drivers/uwb/i1480/i1480u-wlp/tx.c index 3db3449dbda4..3c117a364564 100644 --- a/drivers/uwb/i1480/i1480u-wlp/tx.c +++ b/drivers/uwb/i1480/i1480u-wlp/tx.c | |||
@@ -54,6 +54,7 @@ | |||
54 | * the times the MTU will be smaller than one page... | 54 | * the times the MTU will be smaller than one page... |
55 | */ | 55 | */ |
56 | 56 | ||
57 | #include <linux/slab.h> | ||
57 | #include "i1480u-wlp.h" | 58 | #include "i1480u-wlp.h" |
58 | 59 | ||
59 | enum { | 60 | enum { |