diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2006-08-30 11:27:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 14:58:56 -0400 |
commit | a6d2bb9ff919b4685bd684620ec7a1ffa8bf2349 (patch) | |
tree | 5bd0cc451d3ce84765c7ec6a60d486d0155b3356 /include/linux/usb.h | |
parent | 511366da534bad226e89d294c3b3e910a2aaba6b (diff) |
USB: remove struct usb_operations
All of the currently-supported USB host controller drivers use the HCD
bus-glue framework. As part of the program for flattening out the glue
layer, this patch (as769) removes the usb_operations structure. All
function calls now go directly to the HCD routines (slightly renamed
to remain within the "usb_" namespace).
The patch also removes usb_alloc_bus(), because it's not useful in the
HCD framework and it wasn't referenced anywhere.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r-- | include/linux/usb.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index f104efa04d79..4709033f8fa7 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -257,8 +257,6 @@ int __usb_get_extra_descriptor(char *buffer, unsigned size, | |||
257 | 257 | ||
258 | /* ----------------------------------------------------------------------- */ | 258 | /* ----------------------------------------------------------------------- */ |
259 | 259 | ||
260 | struct usb_operations; | ||
261 | |||
262 | /* USB device number allocation bitmap */ | 260 | /* USB device number allocation bitmap */ |
263 | struct usb_devmap { | 261 | struct usb_devmap { |
264 | unsigned long devicemap[128 / (8*sizeof(unsigned long))]; | 262 | unsigned long devicemap[128 / (8*sizeof(unsigned long))]; |
@@ -279,7 +277,6 @@ struct usb_bus { | |||
279 | * round-robin allocation */ | 277 | * round-robin allocation */ |
280 | 278 | ||
281 | struct usb_devmap devmap; /* device address allocation map */ | 279 | struct usb_devmap devmap; /* device address allocation map */ |
282 | struct usb_operations *op; /* Operations (specific to the HC) */ | ||
283 | struct usb_device *root_hub; /* Root hub */ | 280 | struct usb_device *root_hub; /* Root hub */ |
284 | struct list_head bus_list; /* list of busses */ | 281 | struct list_head bus_list; /* list of busses */ |
285 | void *hcpriv; /* Host Controller private data */ | 282 | void *hcpriv; /* Host Controller private data */ |
@@ -1051,7 +1048,6 @@ extern int usb_submit_urb(struct urb *urb, gfp_t mem_flags); | |||
1051 | extern int usb_unlink_urb(struct urb *urb); | 1048 | extern int usb_unlink_urb(struct urb *urb); |
1052 | extern void usb_kill_urb(struct urb *urb); | 1049 | extern void usb_kill_urb(struct urb *urb); |
1053 | 1050 | ||
1054 | #define HAVE_USB_BUFFERS | ||
1055 | void *usb_buffer_alloc (struct usb_device *dev, size_t size, | 1051 | void *usb_buffer_alloc (struct usb_device *dev, size_t size, |
1056 | gfp_t mem_flags, dma_addr_t *dma); | 1052 | gfp_t mem_flags, dma_addr_t *dma); |
1057 | void usb_buffer_free (struct usb_device *dev, size_t size, | 1053 | void usb_buffer_free (struct usb_device *dev, size_t size, |