diff options
Diffstat (limited to 'drivers/usb/host/sl811-hcd.c')
-rw-r--r-- | drivers/usb/host/sl811-hcd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index 517360b77d8e..a92343052751 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c | |||
@@ -853,7 +853,7 @@ static int sl811h_urb_enqueue( | |||
853 | 853 | ||
854 | } else { | 854 | } else { |
855 | INIT_LIST_HEAD(&ep->schedule); | 855 | INIT_LIST_HEAD(&ep->schedule); |
856 | ep->udev = usb_get_dev(udev); | 856 | ep->udev = udev; |
857 | ep->epnum = epnum; | 857 | ep->epnum = epnum; |
858 | ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); | 858 | ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); |
859 | ep->defctrl = SL11H_HCTLMASK_ARM | SL11H_HCTLMASK_ENABLE; | 859 | ep->defctrl = SL11H_HCTLMASK_ARM | SL11H_HCTLMASK_ENABLE; |
@@ -1052,7 +1052,6 @@ sl811h_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *hep) | |||
1052 | if (!list_empty(&hep->urb_list)) | 1052 | if (!list_empty(&hep->urb_list)) |
1053 | WARN("ep %p not empty?\n", ep); | 1053 | WARN("ep %p not empty?\n", ep); |
1054 | 1054 | ||
1055 | usb_put_dev(ep->udev); | ||
1056 | kfree(ep); | 1055 | kfree(ep); |
1057 | hep->hcpriv = NULL; | 1056 | hep->hcpriv = NULL; |
1058 | } | 1057 | } |