diff options
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/cdc-phonet.c | 1 | ||||
-rw-r--r-- | drivers/net/usb/cdc_ncm.c | 1 | ||||
-rw-r--r-- | drivers/net/usb/ipheth.c | 15 | ||||
-rw-r--r-- | drivers/net/usb/kalmia.c | 12 |
4 files changed, 11 insertions, 18 deletions
diff --git a/drivers/net/usb/cdc-phonet.c b/drivers/net/usb/cdc-phonet.c index f967913e11bc..a60d0069cc45 100644 --- a/drivers/net/usb/cdc-phonet.c +++ b/drivers/net/usb/cdc-phonet.c | |||
@@ -21,6 +21,7 @@ | |||
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
24 | #include <linux/mm.h> | ||
24 | #include <linux/module.h> | 25 | #include <linux/module.h> |
25 | #include <linux/gfp.h> | 26 | #include <linux/gfp.h> |
26 | #include <linux/usb.h> | 27 | #include <linux/usb.h> |
diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c index f33ca6aa29e9..fd622a66ebbf 100644 --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_ncm.c | |||
@@ -47,7 +47,6 @@ | |||
47 | #include <linux/mii.h> | 47 | #include <linux/mii.h> |
48 | #include <linux/crc32.h> | 48 | #include <linux/crc32.h> |
49 | #include <linux/usb.h> | 49 | #include <linux/usb.h> |
50 | #include <linux/version.h> | ||
51 | #include <linux/timer.h> | 50 | #include <linux/timer.h> |
52 | #include <linux/spinlock.h> | 51 | #include <linux/spinlock.h> |
53 | #include <linux/atomic.h> | 52 | #include <linux/atomic.h> |
diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c index 81126ff85e05..15772b1b6a91 100644 --- a/drivers/net/usb/ipheth.c +++ b/drivers/net/usb/ipheth.c | |||
@@ -409,12 +409,6 @@ static void ipheth_tx_timeout(struct net_device *net) | |||
409 | usb_unlink_urb(dev->tx_urb); | 409 | usb_unlink_urb(dev->tx_urb); |
410 | } | 410 | } |
411 | 411 | ||
412 | static struct net_device_stats *ipheth_stats(struct net_device *net) | ||
413 | { | ||
414 | struct ipheth_device *dev = netdev_priv(net); | ||
415 | return &dev->net->stats; | ||
416 | } | ||
417 | |||
418 | static u32 ipheth_ethtool_op_get_link(struct net_device *net) | 412 | static u32 ipheth_ethtool_op_get_link(struct net_device *net) |
419 | { | 413 | { |
420 | struct ipheth_device *dev = netdev_priv(net); | 414 | struct ipheth_device *dev = netdev_priv(net); |
@@ -426,11 +420,10 @@ static struct ethtool_ops ops = { | |||
426 | }; | 420 | }; |
427 | 421 | ||
428 | static const struct net_device_ops ipheth_netdev_ops = { | 422 | static const struct net_device_ops ipheth_netdev_ops = { |
429 | .ndo_open = &ipheth_open, | 423 | .ndo_open = ipheth_open, |
430 | .ndo_stop = &ipheth_close, | 424 | .ndo_stop = ipheth_close, |
431 | .ndo_start_xmit = &ipheth_tx, | 425 | .ndo_start_xmit = ipheth_tx, |
432 | .ndo_tx_timeout = &ipheth_tx_timeout, | 426 | .ndo_tx_timeout = ipheth_tx_timeout, |
433 | .ndo_get_stats = &ipheth_stats, | ||
434 | }; | 427 | }; |
435 | 428 | ||
436 | static int ipheth_probe(struct usb_interface *intf, | 429 | static int ipheth_probe(struct usb_interface *intf, |
diff --git a/drivers/net/usb/kalmia.c b/drivers/net/usb/kalmia.c index a9b6c63d54e4..5a6d0f88f43b 100644 --- a/drivers/net/usb/kalmia.c +++ b/drivers/net/usb/kalmia.c | |||
@@ -100,13 +100,13 @@ kalmia_send_init_packet(struct usbnet *dev, u8 *init_msg, u8 init_msg_len, | |||
100 | static int | 100 | static int |
101 | kalmia_init_and_get_ethernet_addr(struct usbnet *dev, u8 *ethernet_addr) | 101 | kalmia_init_and_get_ethernet_addr(struct usbnet *dev, u8 *ethernet_addr) |
102 | { | 102 | { |
103 | const static char init_msg_1[] = | 103 | static const char init_msg_1[] = |
104 | { 0x57, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, | 104 | { 0x57, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, |
105 | 0x00, 0x00 }; | 105 | 0x00, 0x00 }; |
106 | const static char init_msg_2[] = | 106 | static const char init_msg_2[] = |
107 | { 0x57, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0xf4, | 107 | { 0x57, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0xf4, |
108 | 0x00, 0x00 }; | 108 | 0x00, 0x00 }; |
109 | const static int buflen = 28; | 109 | static const int buflen = 28; |
110 | char *usb_buf; | 110 | char *usb_buf; |
111 | int status; | 111 | int status; |
112 | 112 | ||
@@ -239,11 +239,11 @@ kalmia_rx_fixup(struct usbnet *dev, struct sk_buff *skb) | |||
239 | * Our task here is to strip off framing, leaving skb with one | 239 | * Our task here is to strip off framing, leaving skb with one |
240 | * data frame for the usbnet framework code to process. | 240 | * data frame for the usbnet framework code to process. |
241 | */ | 241 | */ |
242 | const static u8 HEADER_END_OF_USB_PACKET[] = | 242 | static const u8 HEADER_END_OF_USB_PACKET[] = |
243 | { 0x57, 0x5a, 0x00, 0x00, 0x08, 0x00 }; | 243 | { 0x57, 0x5a, 0x00, 0x00, 0x08, 0x00 }; |
244 | const static u8 EXPECTED_UNKNOWN_HEADER_1[] = | 244 | static const u8 EXPECTED_UNKNOWN_HEADER_1[] = |
245 | { 0x57, 0x43, 0x1e, 0x00, 0x15, 0x02 }; | 245 | { 0x57, 0x43, 0x1e, 0x00, 0x15, 0x02 }; |
246 | const static u8 EXPECTED_UNKNOWN_HEADER_2[] = | 246 | static const u8 EXPECTED_UNKNOWN_HEADER_2[] = |
247 | { 0x57, 0x50, 0x0e, 0x00, 0x00, 0x00 }; | 247 | { 0x57, 0x50, 0x0e, 0x00, 0x00, 0x00 }; |
248 | int i = 0; | 248 | int i = 0; |
249 | 249 | ||