diff options
-rw-r--r-- | drivers/usb/gadget/epautoconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index a777f7bd11b4..feaaa7b72ee3 100644 --- a/drivers/usb/gadget/epautoconf.c +++ b/drivers/usb/gadget/epautoconf.c | |||
@@ -58,7 +58,7 @@ ep_matches ( | |||
58 | return 0; | 58 | return 0; |
59 | 59 | ||
60 | /* only support ep0 for portable CONTROL traffic */ | 60 | /* only support ep0 for portable CONTROL traffic */ |
61 | type = desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; | 61 | type = usb_endpoint_type(desc); |
62 | if (USB_ENDPOINT_XFER_CONTROL == type) | 62 | if (USB_ENDPOINT_XFER_CONTROL == type) |
63 | return 0; | 63 | return 0; |
64 | 64 | ||