diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2013-09-26 01:41:15 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-10-20 21:42:40 (GMT) |
commit | b065eb7fd7f9c7364dbfc117ed4705f4dd932474 (patch) | |
tree | 083a909eda6d76223f1def10122a461c977b8796 /drivers/usb/gadget | |
parent | 01773ccc0d8d421935dd6ee51b222221a87620ad (diff) | |
download | u-boot-b065eb7fd7f9c7364dbfc117ed4705f4dd932474.tar.xz |
usb: gadget: mv_udc: clear desc upon ep_disable
desc is set at ep_enable, so for symmetry,
clear it at ep_disable.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/mv_udc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c index f91af7e..c64d597 100644 --- a/drivers/usb/gadget/mv_udc.c +++ b/drivers/usb/gadget/mv_udc.c @@ -245,6 +245,9 @@ static int mv_ep_enable(struct usb_ep *ep, static int mv_ep_disable(struct usb_ep *ep) { + struct mv_ep *mv_ep = container_of(ep, struct mv_ep, ep); + + mv_ep->desc = NULL; return 0; } |