diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2013-09-25 18:41:15 -0700 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-10-20 23:42:40 +0200 |
commit | b065eb7fd7f9c7364dbfc117ed4705f4dd932474 (patch) | |
tree | 083a909eda6d76223f1def10122a461c977b8796 /drivers/usb | |
parent | 01773ccc0d8d421935dd6ee51b222221a87620ad (diff) | |
download | talos-obmc-uboot-b065eb7fd7f9c7364dbfc117ed4705f4dd932474.tar.gz talos-obmc-uboot-b065eb7fd7f9c7364dbfc117ed4705f4dd932474.zip |
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')
-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 f91af7eb46..c64d597053 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; } |