diff options
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 | { |