diff options
Diffstat (limited to 'drivers/usb/gadget/multi.c')
-rw-r--r-- | drivers/usb/gadget/multi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c index a930d7fd7e7..fe1ed688518 100644 --- a/drivers/usb/gadget/multi.c +++ b/drivers/usb/gadget/multi.c @@ -107,7 +107,11 @@ static struct usb_otg_descriptor otg_descriptor = { /* REVISIT SRP-only hardware is possible, although * it would not be called "OTG" ... */ +#ifndef USB_OTG_20 .bmAttributes = USB_OTG_SRP | USB_OTG_HNP, +#else + .bmAttributes = USB_OTG_SRP | USB_OTG_HNP | USB_OTG_ADP, +#endif }; static const struct usb_descriptor_header *otg_desc[] = { |