diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 15:09:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 15:09:47 -0500 |
commit | 55b81e6f2795484ea8edf5805c95c007cacfa736 (patch) | |
tree | c3724975107857fcc03b5dd649c462e4f72397be /drivers/usb/misc | |
parent | 5983faf942f260023e547f3c5f38c1033c35cc9b (diff) | |
parent | 08e87d0d773dc9ca5faf4c3306e238ed0ea129b0 (diff) |
Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
* 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (232 commits)
USB: Add USB-ID for Multiplex RC serial adapter to cp210x.c
xhci: Clean up 32-bit build warnings.
USB: update documentation for usbmon
usb: usb-storage doesn't support dynamic id currently, the patch disables the feature to fix an oops
drivers/usb/class/cdc-acm.c: clear dangling pointer
drivers/usb/dwc3/dwc3-pci.c: introduce missing kfree
drivers/usb/host/isp1760-if.c: introduce missing kfree
usb: option: add ZD Incorporated HSPA modem
usb: ch9: fix up MaxStreams helper
USB: usb-skeleton.c: cleanup open_count
USB: usb-skeleton.c: fix open/disconnect race
xhci: Properly handle COMP_2ND_BW_ERR
USB: remove dead code from suspend/resume path
USB: add quirk for another camera
drivers: usb: wusbcore: Fix dependency for USB_WUSB
xhci: Better debugging for critical host errors.
xhci: Be less verbose during URB cancellation.
xhci: Remove debugging about ring structure allocation.
xhci: Remove debugging about toggling cycle bits.
xhci: Remove debugging for individual transfers.
...
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/isight_firmware.c | 6 | ||||
-rw-r--r-- | drivers/usb/misc/usbtest.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/misc/isight_firmware.c b/drivers/usb/misc/isight_firmware.c index 1dc7e9581cc6..1c61830e96f9 100644 --- a/drivers/usb/misc/isight_firmware.c +++ b/drivers/usb/misc/isight_firmware.c | |||
@@ -55,8 +55,9 @@ static int isight_firmware_load(struct usb_interface *intf, | |||
55 | 55 | ||
56 | ptr = firmware->data; | 56 | ptr = firmware->data; |
57 | 57 | ||
58 | buf[0] = 0x01; | ||
58 | if (usb_control_msg | 59 | if (usb_control_msg |
59 | (dev, usb_sndctrlpipe(dev, 0), 0xa0, 0x40, 0xe600, 0, "\1", 1, | 60 | (dev, usb_sndctrlpipe(dev, 0), 0xa0, 0x40, 0xe600, 0, buf, 1, |
60 | 300) != 1) { | 61 | 300) != 1) { |
61 | printk(KERN_ERR | 62 | printk(KERN_ERR |
62 | "Failed to initialise isight firmware loader\n"); | 63 | "Failed to initialise isight firmware loader\n"); |
@@ -100,8 +101,9 @@ static int isight_firmware_load(struct usb_interface *intf, | |||
100 | } | 101 | } |
101 | } | 102 | } |
102 | 103 | ||
104 | buf[0] = 0x00; | ||
103 | if (usb_control_msg | 105 | if (usb_control_msg |
104 | (dev, usb_sndctrlpipe(dev, 0), 0xa0, 0x40, 0xe600, 0, "\0", 1, | 106 | (dev, usb_sndctrlpipe(dev, 0), 0xa0, 0x40, 0xe600, 0, buf, 1, |
105 | 300) != 1) { | 107 | 300) != 1) { |
106 | printk(KERN_ERR "isight firmware loading completion failed\n"); | 108 | printk(KERN_ERR "isight firmware loading completion failed\n"); |
107 | ret = -ENODEV; | 109 | ret = -ENODEV; |
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index bd6d00802eab..959145baf3cf 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c | |||
@@ -1765,7 +1765,6 @@ static int test_unaligned_bulk( | |||
1765 | * off just killing the userspace task and waiting for it to exit. | 1765 | * off just killing the userspace task and waiting for it to exit. |
1766 | */ | 1766 | */ |
1767 | 1767 | ||
1768 | /* No BKL needed */ | ||
1769 | static int | 1768 | static int |
1770 | usbtest_ioctl(struct usb_interface *intf, unsigned int code, void *buf) | 1769 | usbtest_ioctl(struct usb_interface *intf, unsigned int code, void *buf) |
1771 | { | 1770 | { |