diff options
author | Timo Juhani Lindfors <timo.lindfors@iki.fi> | 2012-01-29 09:12:13 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-01-30 04:10:20 -0500 |
commit | 683da59d7b8ae04891636d4b59893cd4e9b0b7e5 (patch) | |
tree | 169b6cf56378e8194ecbf20bebbbbb7fa641fb7d /drivers/usb/gadget | |
parent | b30b3c60a25a4afbc49167ecb6210c291178ee5f (diff) |
usb: gadget: zero: fix bug in loopback autoresume handling
ab943a2e125b (USB: gadget: gadget zero uses new suspend/resume hooks)
introduced a copy-paste error where f_loopback.c writes to a variable
declared in f_sourcesink.c. This prevents one from creating gadgets
that only have a loopback function.
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Timo Juhani Lindfors <timo.lindfors@iki.fi>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/f_loopback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_loopback.c b/drivers/usb/gadget/f_loopback.c index 6d87f288df4e..2c0cd824c667 100644 --- a/drivers/usb/gadget/f_loopback.c +++ b/drivers/usb/gadget/f_loopback.c | |||
@@ -418,7 +418,7 @@ int __init loopback_add(struct usb_composite_dev *cdev, bool autoresume) | |||
418 | 418 | ||
419 | /* support autoresume for remote wakeup testing */ | 419 | /* support autoresume for remote wakeup testing */ |
420 | if (autoresume) | 420 | if (autoresume) |
421 | sourcesink_driver.bmAttributes |= USB_CONFIG_ATT_WAKEUP; | 421 | loopback_driver.bmAttributes |= USB_CONFIG_ATT_WAKEUP; |
422 | 422 | ||
423 | /* support OTG systems */ | 423 | /* support OTG systems */ |
424 | if (gadget_is_otg(cdev->gadget)) { | 424 | if (gadget_is_otg(cdev->gadget)) { |