diff options
| author | Sarah Sharp <[email protected]> | 2010-11-30 15:55:51 -0800 |
|---|---|---|
| committer | Sarah Sharp <[email protected]> | 2011-03-13 18:07:07 -0700 |
| commit | da13051cc756756f10b2da8ea97b05bdf84bd7bb (patch) | |
| tree | d4036bb80a731da1eeaa57211afe37f3fc000056 /include/linux/usb | |
| parent | 0b8ca72a23df365a413e03f991bc6b8179dee13f (diff) | |
USB: Remove bitmap #define from hcd.h
Using a #define to redefine a common variable name is a bad thing,
especially when the #define is in a header. include/linux/usb/hcd.h
redefined bitmap to DeviceRemovable to avoid typing a long field in the
hub descriptor. This has unintended side effects for files like
drivers/usb/core/devio.c that include that file, since another header
included after hcd.h has different variables named bitmap.
Remove the bitmap #define and replace instances of it in the host
controller code. Cleanup the spaces around function calls and square
brackets while we're at it.
Signed-off-by: Sarah Sharp <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Inaky Perez-Gonzalez <[email protected]>
Cc: Tony Olech <[email protected]>
Cc: "Robert P. J. Day" <[email protected]>
Cc: Max Vozeler <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: Rodolfo Giometti <[email protected]>
Cc: Mike Frysinger <[email protected]>
Cc: Anton Vorontsov <[email protected]>
Cc: Sebastian Siewior <[email protected]>
Cc: Lothar Wassmann <[email protected]>
Cc: Olav Kongas <[email protected]>
Cc: Martin Fuzzey <[email protected]>
Cc: Alan Stern <[email protected]>
Cc: David Brownell <[email protected]>
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/hcd.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h index 8b65068c6af9..0be61970074e 100644 --- a/include/linux/usb/hcd.h +++ b/include/linux/usb/hcd.h @@ -641,13 +641,6 @@ static inline void usbmon_urb_complete(struct usb_bus *bus, struct urb *urb, /*-------------------------------------------------------------------------*/ -/* hub.h ... DeviceRemovable in 2.4.2-ac11, gone in 2.4.10 */ -/* bleech -- resurfaced in 2.4.11 or 2.4.12 */ -#define bitmap DeviceRemovable - - -/*-------------------------------------------------------------------------*/ - /* random stuff */ #define RUN_CONTEXT (in_irq() ? "in_irq" \ |