diff options
Diffstat (limited to 'drivers/usb/host/uhci-q.c')
-rw-r--r-- | drivers/usb/host/uhci-q.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/uhci-q.c b/drivers/usb/host/uhci-q.c index 5d2f9575ab4f..a06d84c19e13 100644 --- a/drivers/usb/host/uhci-q.c +++ b/drivers/usb/host/uhci-q.c | |||
@@ -179,7 +179,6 @@ static struct uhci_qh *uhci_alloc_qh(struct uhci_hcd *uhci, | |||
179 | qh->hep = hep; | 179 | qh->hep = hep; |
180 | qh->udev = udev; | 180 | qh->udev = udev; |
181 | hep->hcpriv = qh; | 181 | hep->hcpriv = qh; |
182 | usb_get_dev(udev); | ||
183 | 182 | ||
184 | } else { /* Skeleton QH */ | 183 | } else { /* Skeleton QH */ |
185 | qh->state = QH_STATE_ACTIVE; | 184 | qh->state = QH_STATE_ACTIVE; |
@@ -197,7 +196,6 @@ static void uhci_free_qh(struct uhci_hcd *uhci, struct uhci_qh *qh) | |||
197 | list_del(&qh->node); | 196 | list_del(&qh->node); |
198 | if (qh->udev) { | 197 | if (qh->udev) { |
199 | qh->hep->hcpriv = NULL; | 198 | qh->hep->hcpriv = NULL; |
200 | usb_put_dev(qh->udev); | ||
201 | uhci_free_td(uhci, qh->dummy_td); | 199 | uhci_free_td(uhci, qh->dummy_td); |
202 | } | 200 | } |
203 | dma_pool_free(uhci->qh_pool, qh, qh->dma_handle); | 201 | dma_pool_free(uhci->qh_pool, qh, qh->dma_handle); |