aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/uhci-hcd.h
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2005-04-25 11:14:31 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-27 17:43:48 -0400
commit2532178a68b5ce4e421d50ea1b1dcc0a1359f19d (patch)
tree8ceb32dab2f43431946ef9b09fd02cb07e76e4ed /drivers/usb/host/uhci-hcd.h
parent7d35b9298539d2818c51fe9070b08cf9876016f4 (diff)
[PATCH] UHCI: Don't store device pointer in QH or TD
This patch simplifies the uhci-hcd driver by removing the device pointer currently stored in the QH and TD structures. Those pointers weren't being used for anything other than to increment the device's reference count, which is unnecessary since the device is used only when an URB completes, and outstanding URBs take their own reference to the device. As a useful side effect, this change means that uhci-hcd no longer needs to have the root-hub device available in the start routine. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/uhci-hcd.h')
-rw-r--r--drivers/usb/host/uhci-hcd.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/uhci-hcd.h b/drivers/usb/host/uhci-hcd.h
index d7c67b73eb7a..bf9c5f9b508b 100644
--- a/drivers/usb/host/uhci-hcd.h
+++ b/drivers/usb/host/uhci-hcd.h
@@ -114,7 +114,6 @@ struct uhci_qh {
114 /* Software fields */ 114 /* Software fields */
115 dma_addr_t dma_handle; 115 dma_addr_t dma_handle;
116 116
117 struct usb_device *dev;
118 struct urb_priv *urbp; 117 struct urb_priv *urbp;
119 118
120 struct list_head list; /* P: uhci->frame_list_lock */ 119 struct list_head list; /* P: uhci->frame_list_lock */
@@ -206,7 +205,6 @@ struct uhci_td {
206 /* Software fields */ 205 /* Software fields */
207 dma_addr_t dma_handle; 206 dma_addr_t dma_handle;
208 207
209 struct usb_device *dev;
210 struct urb *urb; 208 struct urb *urb;
211 209
212 struct list_head list; /* P: urb->lock */ 210 struct list_head list; /* P: urb->lock */