mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 20:33:49 -04:00
[PATCH] USB: Zero driver: Removed duplicated code
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
efafe6fb72
commit
0eb8c7cafe
@@ -1224,12 +1224,6 @@ zero_bind (struct usb_gadget *gadget)
|
||||
loopback_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
|
||||
}
|
||||
|
||||
if (gadget->is_otg) {
|
||||
otg_descriptor.bmAttributes |= USB_OTG_HNP,
|
||||
source_sink_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
|
||||
loopback_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
|
||||
}
|
||||
|
||||
usb_gadget_set_selfpowered (gadget);
|
||||
|
||||
init_timer (&dev->resume);
|
||||
|
||||
Reference in New Issue
Block a user