Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95792
b: refs/heads/master
c: 7a6ad1d
h: refs/heads/master
v: v3
  • Loading branch information
David Lopo authored and Greg Kroah-Hartman committed May 2, 2008
1 parent 911a7d7 commit 377feb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 7472f38b10c884f47241529d1367f77c2e1b3551
refs/heads/master: 7a6ad1dd86a45da8f235300349d4abd9ae7d1a21
7 changes: 4 additions & 3 deletions trunk/drivers/usb/gadget/zero.c
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,10 @@ static int __init zero_bind(struct usb_gadget *gadget)
dev->gadget = gadget;
set_gadget_data(gadget, dev);

init_timer(&dev->resume);
dev->resume.function = zero_autoresume;
dev->resume.data = (unsigned long) dev;

/* preallocate control response and buffer */
dev->req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL);
if (!dev->req)
Expand Down Expand Up @@ -1165,9 +1169,6 @@ static int __init zero_bind(struct usb_gadget *gadget)

usb_gadget_set_selfpowered(gadget);

init_timer(&dev->resume);
dev->resume.function = zero_autoresume;
dev->resume.data = (unsigned long) dev;
if (autoresume) {
source_sink_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
loopback_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
Expand Down

0 comments on commit 377feb9

Please sign in to comment.