usb: gadget: renesas_usbhs: cleanup usbhs_endpoint_disable()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 31 Oct 2011 07:47:24 +0000 (00:47 -0700)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Dec 2011 09:45:03 +0000 (11:45 +0200)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/mod_host.c

index 7fa460e2a8c010e7508eeb53d3b50caa74597715..f18062c798a3b921bc46a7162e95b5e0b53a315b 100644 (file)
@@ -822,7 +822,7 @@ static void usbhsh_endpoint_disable(struct usb_hcd *hcd,
 
        /*
         * this function might be called manytimes by same hcd/ep
-        * in-endpoitn == out-endpoint if ep == dcp.
+        * in-endpoint == out-endpoint if ep == dcp.
         */
        if (!uep)
                return;
@@ -831,7 +831,6 @@ static void usbhsh_endpoint_disable(struct usb_hcd *hcd,
        hpriv   = usbhsh_hcd_to_hpriv(hcd);
 
        usbhsh_endpoint_free(hpriv, ep);
-       ep->hcpriv = NULL;
 
        /*
         * if there is no endpoint,