diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 19:29:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 19:29:25 -0400 |
commit | 7a6362800cb7d1d618a697a650c7aaed3eb39320 (patch) | |
tree | 087f9bc6c13ef1fad4b392c5cf9325cd28fa8523 /drivers/net/usb | |
parent | 6445ced8670f37cfc2c5e24a9de9b413dbfc788d (diff) | |
parent | ceda86a108671294052cbf51660097b6534672f5 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1480 commits)
bonding: enable netpoll without checking link status
xfrm: Refcount destination entry on xfrm_lookup
net: introduce rx_handler results and logic around that
bonding: get rid of IFF_SLAVE_INACTIVE netdev->priv_flag
bonding: wrap slave state work
net: get rid of multiple bond-related netdevice->priv_flags
bonding: register slave pointer for rx_handler
be2net: Bump up the version number
be2net: Copyright notice change. Update to Emulex instead of ServerEngines
e1000e: fix kconfig for crc32 dependency
netfilter ebtables: fix xt_AUDIT to work with ebtables
xen network backend driver
bonding: Improve syslog message at device creation time
bonding: Call netif_carrier_off after register_netdevice
bonding: Incorrect TX queue offset
net_sched: fix ip_tos2prio
xfrm: fix __xfrm_route_forward()
be2net: Fix UDP packet detected status in RX compl
Phonet: fix aligned-mode pipe socket buffer header reserve
netxen: support for GbE port settings
...
Fix up conflicts in drivers/staging/brcm80211/brcmsmac/wl_mac80211.c
with the staging updates.
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/cdc-phonet.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/usb/cdc-phonet.c b/drivers/net/usb/cdc-phonet.c index 109751bad3bb..f967913e11bc 100644 --- a/drivers/net/usb/cdc-phonet.c +++ b/drivers/net/usb/cdc-phonet.c | |||
@@ -328,13 +328,13 @@ int usbpn_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
328 | { | 328 | { |
329 | static const char ifname[] = "usbpn%d"; | 329 | static const char ifname[] = "usbpn%d"; |
330 | const struct usb_cdc_union_desc *union_header = NULL; | 330 | const struct usb_cdc_union_desc *union_header = NULL; |
331 | const struct usb_cdc_header_desc *phonet_header = NULL; | ||
332 | const struct usb_host_interface *data_desc; | 331 | const struct usb_host_interface *data_desc; |
333 | struct usb_interface *data_intf; | 332 | struct usb_interface *data_intf; |
334 | struct usb_device *usbdev = interface_to_usbdev(intf); | 333 | struct usb_device *usbdev = interface_to_usbdev(intf); |
335 | struct net_device *dev; | 334 | struct net_device *dev; |
336 | struct usbpn_dev *pnd; | 335 | struct usbpn_dev *pnd; |
337 | u8 *data; | 336 | u8 *data; |
337 | int phonet = 0; | ||
338 | int len, err; | 338 | int len, err; |
339 | 339 | ||
340 | data = intf->altsetting->extra; | 340 | data = intf->altsetting->extra; |
@@ -355,10 +355,7 @@ int usbpn_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
355 | (struct usb_cdc_union_desc *)data; | 355 | (struct usb_cdc_union_desc *)data; |
356 | break; | 356 | break; |
357 | case 0xAB: | 357 | case 0xAB: |
358 | if (phonet_header || dlen < 5) | 358 | phonet = 1; |
359 | break; | ||
360 | phonet_header = | ||
361 | (struct usb_cdc_header_desc *)data; | ||
362 | break; | 359 | break; |
363 | } | 360 | } |
364 | } | 361 | } |
@@ -366,7 +363,7 @@ int usbpn_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
366 | len -= dlen; | 363 | len -= dlen; |
367 | } | 364 | } |
368 | 365 | ||
369 | if (!union_header || !phonet_header) | 366 | if (!union_header || !phonet) |
370 | return -EINVAL; | 367 | return -EINVAL; |
371 | 368 | ||
372 | data_intf = usb_ifnum_to_if(usbdev, union_header->bSlaveInterface0); | 369 | data_intf = usb_ifnum_to_if(usbdev, union_header->bSlaveInterface0); |
@@ -392,7 +389,6 @@ int usbpn_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
392 | 389 | ||
393 | pnd = netdev_priv(dev); | 390 | pnd = netdev_priv(dev); |
394 | SET_NETDEV_DEV(dev, &intf->dev); | 391 | SET_NETDEV_DEV(dev, &intf->dev); |
395 | netif_stop_queue(dev); | ||
396 | 392 | ||
397 | pnd->dev = dev; | 393 | pnd->dev = dev; |
398 | pnd->usb = usb_get_dev(usbdev); | 394 | pnd->usb = usb_get_dev(usbdev); |