usb: gadget: mv_udc: clear desc upon ep_disable
authorTroy Kisky <troy.kisky@boundarydevices.com>
Thu, 26 Sep 2013 01:41:15 +0000 (18:41 -0700)
committerMarek Vasut <marex@denx.de>
Sun, 20 Oct 2013 21:42:40 +0000 (23:42 +0200)
desc is set at ep_enable, so for symmetry,
clear it at ep_disable.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
drivers/usb/gadget/mv_udc.c

index f91af7eb46483a5730d7f07e0d4e64e1643b9c44..c64d5970532a0a00eef3a678c48c054839131294 100644 (file)
@@ -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;
 }