diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/usb/atm/cxacru.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/usb/atm/cxacru.c')
-rw-r--r-- | drivers/usb/atm/cxacru.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c index 5af23cc5ea9f..a845f8b8382f 100644 --- a/drivers/usb/atm/cxacru.c +++ b/drivers/usb/atm/cxacru.c | |||
@@ -1247,7 +1247,7 @@ static void cxacru_unbind(struct usbatm_data *usbatm_instance, | |||
1247 | mutex_unlock(&instance->poll_state_serialize); | 1247 | mutex_unlock(&instance->poll_state_serialize); |
1248 | 1248 | ||
1249 | if (is_polling) | 1249 | if (is_polling) |
1250 | cancel_rearming_delayed_work(&instance->poll_work); | 1250 | cancel_delayed_work_sync(&instance->poll_work); |
1251 | 1251 | ||
1252 | usb_kill_urb(instance->snd_urb); | 1252 | usb_kill_urb(instance->snd_urb); |
1253 | usb_kill_urb(instance->rcv_urb); | 1253 | usb_kill_urb(instance->rcv_urb); |
@@ -1344,8 +1344,24 @@ static struct usbatm_driver cxacru_driver = { | |||
1344 | .tx_padding = 11, | 1344 | .tx_padding = 11, |
1345 | }; | 1345 | }; |
1346 | 1346 | ||
1347 | static int cxacru_usb_probe(struct usb_interface *intf, const struct usb_device_id *id) | 1347 | static int cxacru_usb_probe(struct usb_interface *intf, |
1348 | const struct usb_device_id *id) | ||
1348 | { | 1349 | { |
1350 | struct usb_device *usb_dev = interface_to_usbdev(intf); | ||
1351 | char buf[15]; | ||
1352 | |||
1353 | /* Avoid ADSL routers (cx82310_eth). | ||
1354 | * Abort if bDeviceClass is 0xff and iProduct is "USB NET CARD". | ||
1355 | */ | ||
1356 | if (usb_dev->descriptor.bDeviceClass == USB_CLASS_VENDOR_SPEC | ||
1357 | && usb_string(usb_dev, usb_dev->descriptor.iProduct, | ||
1358 | buf, sizeof(buf)) > 0) { | ||
1359 | if (!strcmp(buf, "USB NET CARD")) { | ||
1360 | dev_info(&intf->dev, "ignoring cx82310_eth device\n"); | ||
1361 | return -ENODEV; | ||
1362 | } | ||
1363 | } | ||
1364 | |||
1349 | return usbatm_usb_probe(intf, id, &cxacru_driver); | 1365 | return usbatm_usb_probe(intf, id, &cxacru_driver); |
1350 | } | 1366 | } |
1351 | 1367 | ||