diff options
author | David Howells <dhowells@redhat.com> | 2006-12-05 09:37:56 -0500 |
---|---|---|
committer | David Howells <dhowells@warthog.cambridge.redhat.com> | 2006-12-05 09:37:56 -0500 |
commit | 4c1ac1b49122b805adfa4efc620592f68dccf5db (patch) | |
tree | 87557f4bc2fd4fe65b7570489c2f610c45c0adcd /drivers/usb/misc/phidgetkit.c | |
parent | c4028958b6ecad064b1a6303a6a5906d4fe48d73 (diff) | |
parent | d916faace3efc0bf19fe9a615a1ab8fa1a24cd93 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
drivers/infiniband/core/iwcm.c
drivers/net/chelsio/cxgb2.c
drivers/net/wireless/bcm43xx/bcm43xx_main.c
drivers/net/wireless/prism54/islpci_eth.c
drivers/usb/core/hub.h
drivers/usb/input/hid-core.c
net/core/netpoll.c
Fix up merge failures with Linus's head and fix new compilation failures.
Signed-Off-By: David Howells <dhowells@redhat.com>
Diffstat (limited to 'drivers/usb/misc/phidgetkit.c')
-rw-r--r-- | drivers/usb/misc/phidgetkit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/misc/phidgetkit.c b/drivers/usb/misc/phidgetkit.c index 33e716c6a79b..9659c79e187e 100644 --- a/drivers/usb/misc/phidgetkit.c +++ b/drivers/usb/misc/phidgetkit.c | |||
@@ -554,7 +554,7 @@ static int interfacekit_probe(struct usb_interface *intf, const struct usb_devic | |||
554 | return -ENODEV; | 554 | return -ENODEV; |
555 | 555 | ||
556 | endpoint = &interface->endpoint[0].desc; | 556 | endpoint = &interface->endpoint[0].desc; |
557 | if (!(endpoint->bEndpointAddress & 0x80)) | 557 | if (!usb_endpoint_dir_in(endpoint)) |
558 | return -ENODEV; | 558 | return -ENODEV; |
559 | /* | 559 | /* |
560 | * bmAttributes | 560 | * bmAttributes |
@@ -653,8 +653,7 @@ out2: | |||
653 | device_remove_file(kit->dev, &dev_output_attrs[i]); | 653 | device_remove_file(kit->dev, &dev_output_attrs[i]); |
654 | out: | 654 | out: |
655 | if (kit) { | 655 | if (kit) { |
656 | if (kit->irq) | 656 | usb_free_urb(kit->irq); |
657 | usb_free_urb(kit->irq); | ||
658 | if (kit->data) | 657 | if (kit->data) |
659 | usb_buffer_free(dev, URB_INT_SIZE, kit->data, kit->data_dma); | 658 | usb_buffer_free(dev, URB_INT_SIZE, kit->data, kit->data_dma); |
660 | if (kit->dev) | 659 | if (kit->dev) |