diff options
-rw-r--r-- | drivers/usb/misc/iowarrior.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c index de97ed7b0b95..fc51207b71b8 100644 --- a/drivers/usb/misc/iowarrior.c +++ b/drivers/usb/misc/iowarrior.c | |||
@@ -118,7 +118,7 @@ static int usb_get_report(struct usb_device *dev, | |||
118 | USB_DIR_IN | USB_TYPE_CLASS | | 118 | USB_DIR_IN | USB_TYPE_CLASS | |
119 | USB_RECIP_INTERFACE, (type << 8) + id, | 119 | USB_RECIP_INTERFACE, (type << 8) + id, |
120 | inter->desc.bInterfaceNumber, buf, size, | 120 | inter->desc.bInterfaceNumber, buf, size, |
121 | GET_TIMEOUT); | 121 | GET_TIMEOUT*HZ); |
122 | } | 122 | } |
123 | //#endif | 123 | //#endif |
124 | 124 | ||
@@ -133,7 +133,7 @@ static int usb_set_report(struct usb_interface *intf, unsigned char type, | |||
133 | USB_TYPE_CLASS | USB_RECIP_INTERFACE, | 133 | USB_TYPE_CLASS | USB_RECIP_INTERFACE, |
134 | (type << 8) + id, | 134 | (type << 8) + id, |
135 | intf->cur_altsetting->desc.bInterfaceNumber, buf, | 135 | intf->cur_altsetting->desc.bInterfaceNumber, buf, |
136 | size, 1); | 136 | size, HZ); |
137 | } | 137 | } |
138 | 138 | ||
139 | /*---------------------*/ | 139 | /*---------------------*/ |
@@ -750,7 +750,6 @@ static int iowarrior_probe(struct usb_interface *interface, | |||
750 | struct usb_endpoint_descriptor *endpoint; | 750 | struct usb_endpoint_descriptor *endpoint; |
751 | int i; | 751 | int i; |
752 | int retval = -ENOMEM; | 752 | int retval = -ENOMEM; |
753 | int idele = 0; | ||
754 | 753 | ||
755 | /* allocate memory for our device state and intialize it */ | 754 | /* allocate memory for our device state and intialize it */ |
756 | dev = kzalloc(sizeof(struct iowarrior), GFP_KERNEL); | 755 | dev = kzalloc(sizeof(struct iowarrior), GFP_KERNEL); |
@@ -826,11 +825,10 @@ static int iowarrior_probe(struct usb_interface *interface, | |||
826 | 825 | ||
827 | /* Set the idle timeout to 0, if this is interface 0 */ | 826 | /* Set the idle timeout to 0, if this is interface 0 */ |
828 | if (dev->interface->cur_altsetting->desc.bInterfaceNumber == 0) { | 827 | if (dev->interface->cur_altsetting->desc.bInterfaceNumber == 0) { |
829 | idele = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), | 828 | usb_control_msg(udev, usb_sndctrlpipe(udev, 0), |
830 | 0x0A, | 829 | 0x0A, |
831 | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0, | 830 | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0, |
832 | 0, NULL, 0, USB_CTRL_SET_TIMEOUT); | 831 | 0, NULL, 0, USB_CTRL_SET_TIMEOUT); |
833 | dbg("idele = %d", idele); | ||
834 | } | 832 | } |
835 | /* allow device read and ioctl */ | 833 | /* allow device read and ioctl */ |
836 | dev->present = 1; | 834 | dev->present = 1; |