From: Troy Kisky Date: Thu, 26 Sep 2013 01:41:15 +0000 (-0700) Subject: usb: gadget: mv_udc: clear desc upon ep_disable X-Git-Tag: v2014.01-rc1~207^2~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b065eb7fd7f9c7364dbfc117ed4705f4dd932474;p=oweals%2Fu-boot.git 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 --- 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; }