diff options
-rw-r--r-- | drivers/usb/gadget/fusb300_udc.c | 4 | ||||
-rw-r--r-- | drivers/usb/gadget/fusb300_udc.h | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/gadget/fusb300_udc.c b/drivers/usb/gadget/fusb300_udc.c index 5831cb4a0b35..cdd94540e1cd 100644 --- a/drivers/usb/gadget/fusb300_udc.c +++ b/drivers/usb/gadget/fusb300_udc.c | |||
@@ -203,7 +203,7 @@ static int config_ep(struct fusb300_ep *ep, | |||
203 | struct fusb300 *fusb300 = ep->fusb300; | 203 | struct fusb300 *fusb300 = ep->fusb300; |
204 | struct fusb300_ep_info info; | 204 | struct fusb300_ep_info info; |
205 | 205 | ||
206 | ep->desc = desc; | 206 | ep->ep.desc = desc; |
207 | 207 | ||
208 | info.interval = 0; | 208 | info.interval = 0; |
209 | info.addrofs = 0; | 209 | info.addrofs = 0; |
@@ -443,7 +443,7 @@ static int fusb300_queue(struct usb_ep *_ep, struct usb_request *_req, | |||
443 | req->req.actual = 0; | 443 | req->req.actual = 0; |
444 | req->req.status = -EINPROGRESS; | 444 | req->req.status = -EINPROGRESS; |
445 | 445 | ||
446 | if (ep->desc == NULL) /* ep0 */ | 446 | if (ep->ep.desc == NULL) /* ep0 */ |
447 | ep0_queue(ep, req); | 447 | ep0_queue(ep, req); |
448 | else if (request && !ep->stall) | 448 | else if (request && !ep->stall) |
449 | enable_fifo_int(ep); | 449 | enable_fifo_int(ep); |
diff --git a/drivers/usb/gadget/fusb300_udc.h b/drivers/usb/gadget/fusb300_udc.h index 92745bd03064..542cd83cc806 100644 --- a/drivers/usb/gadget/fusb300_udc.h +++ b/drivers/usb/gadget/fusb300_udc.h | |||
@@ -650,7 +650,6 @@ struct fusb300_ep { | |||
650 | 650 | ||
651 | unsigned char epnum; | 651 | unsigned char epnum; |
652 | unsigned char type; | 652 | unsigned char type; |
653 | const struct usb_endpoint_descriptor *desc; | ||
654 | }; | 653 | }; |
655 | 654 | ||
656 | struct fusb300 { | 655 | struct fusb300 { |