Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190752
b: refs/heads/master
c: fde4e2f
h: refs/heads/master
v: v3
  • Loading branch information
Alan Stern authored and Jiri Kosina committed May 7, 2010
1 parent a4921c4 commit 5e4eaae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fddb33f2e8872fa4857dd29f0b71a523c9ed5577
refs/heads/master: fde4e2f73208b8f34f123791e39c0cb6bc74b32a
13 changes: 6 additions & 7 deletions trunk/drivers/hid/usbhid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,13 +999,6 @@ static int usbhid_start(struct hid_device *hid)
}
}

init_waitqueue_head(&usbhid->wait);
INIT_WORK(&usbhid->reset_work, hid_reset);
INIT_WORK(&usbhid->restart_work, __usbhid_restart_queues);
setup_timer(&usbhid->io_retry, hid_retry_timeout, (unsigned long) hid);

spin_lock_init(&usbhid->lock);

usbhid->urbctrl = usb_alloc_urb(0, GFP_KERNEL);
if (!usbhid->urbctrl) {
ret = -ENOMEM;
Expand Down Expand Up @@ -1179,6 +1172,12 @@ static int usbhid_probe(struct usb_interface *intf, const struct usb_device_id *
usbhid->intf = intf;
usbhid->ifnum = interface->desc.bInterfaceNumber;

init_waitqueue_head(&usbhid->wait);
INIT_WORK(&usbhid->reset_work, hid_reset);
INIT_WORK(&usbhid->restart_work, __usbhid_restart_queues);
setup_timer(&usbhid->io_retry, hid_retry_timeout, (unsigned long) hid);
spin_lock_init(&usbhid->lock);

ret = hid_add_device(hid);
if (ret) {
if (ret != -ENODEV)
Expand Down

0 comments on commit 5e4eaae

Please sign in to comment.