Commit 5eaee54b authored by Nicolas Ferre's avatar Nicolas Ferre Committed by Greg Kroah-Hartman

usb: gadget: at91_udc: fix endpoint descriptor dereference

The patch 5a6506f0 (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: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ea79c2ed
...@@ -475,7 +475,7 @@ static int at91_ep_enable(struct usb_ep *_ep, ...@@ -475,7 +475,7 @@ static int at91_ep_enable(struct usb_ep *_ep,
unsigned long flags; unsigned long flags;
if (!_ep || !ep if (!_ep || !ep
|| !desc || ep->desc || !desc || ep->ep.desc
|| _ep->name == ep0name || _ep->name == ep0name
|| desc->bDescriptorType != USB_DT_ENDPOINT || desc->bDescriptorType != USB_DT_ENDPOINT
|| (maxpacket = usb_endpoint_maxp(desc)) == 0 || (maxpacket = usb_endpoint_maxp(desc)) == 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment