diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-10-31 03:47:24 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-12 04:45:03 -0500 |
commit | fca8ab7ee1c6d1857a4fcc9420cbf0e3b51aa199 (patch) | |
tree | b1530ccfc06539d2f1ee6a3f0b5bea7791650bea | |
parent | 3dd492686c063f9fa9417c3888e7a8eeb504b5b9 (diff) |
usb: gadget: renesas_usbhs: cleanup usbhs_endpoint_disable()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/renesas_usbhs/mod_host.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_host.c b/drivers/usb/renesas_usbhs/mod_host.c index 7fa460e2a8c0..f18062c798a3 100644 --- a/drivers/usb/renesas_usbhs/mod_host.c +++ b/drivers/usb/renesas_usbhs/mod_host.c | |||
@@ -822,7 +822,7 @@ static void usbhsh_endpoint_disable(struct usb_hcd *hcd, | |||
822 | 822 | ||
823 | /* | 823 | /* |
824 | * this function might be called manytimes by same hcd/ep | 824 | * this function might be called manytimes by same hcd/ep |
825 | * in-endpoitn == out-endpoint if ep == dcp. | 825 | * in-endpoint == out-endpoint if ep == dcp. |
826 | */ | 826 | */ |
827 | if (!uep) | 827 | if (!uep) |
828 | return; | 828 | return; |
@@ -831,7 +831,6 @@ static void usbhsh_endpoint_disable(struct usb_hcd *hcd, | |||
831 | hpriv = usbhsh_hcd_to_hpriv(hcd); | 831 | hpriv = usbhsh_hcd_to_hpriv(hcd); |
832 | 832 | ||
833 | usbhsh_endpoint_free(hpriv, ep); | 833 | usbhsh_endpoint_free(hpriv, ep); |
834 | ep->hcpriv = NULL; | ||
835 | 834 | ||
836 | /* | 835 | /* |
837 | * if there is no endpoint, | 836 | * if there is no endpoint, |