diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-05-16 10:23:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-16 05:29:20 -0700 |
commit | 5eaee54b1c52a83dc74445792cf49900a8050da8 (patch) | |
tree | df340ed35ff9bc478a206e4c1dc3938f9a2bbb7e /drivers/usb/gadget | |
parent | ea79c2ed6ec374347e4c61755bcb6fe8c2b24961 (diff) | |
download | blackbird-op-linux-5eaee54b1c52a83dc74445792cf49900a8050da8.tar.gz blackbird-op-linux-5eaee54b1c52a83dc74445792cf49900a8050da8.zip |
usb: gadget: at91_udc: fix endpoint descriptor dereference
The patch 5a6506f (Update at91_udc to use usb_endpoint_descriptor inside the
struct usb_ep) removes the desc field of struct at91_ep. This convertion had
not been completed which leads to a compilation error.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/at91_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index 43943aa965dc..1a4430f315c3 100644 --- a/drivers/usb/gadget/at91_udc.c +++ b/drivers/usb/gadget/at91_udc.c @@ -475,7 +475,7 @@ static int at91_ep_enable(struct usb_ep *_ep, unsigned long flags; if (!_ep || !ep - || !desc || ep->desc + || !desc || ep->ep.desc || _ep->name == ep0name || desc->bDescriptorType != USB_DT_ENDPOINT || (maxpacket = usb_endpoint_maxp(desc)) == 0 |