diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2002-08-11 20:31:46 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2002-08-11 20:31:46 -0700 |
| commit | 1494dfd56a93892ef35fbdb5585e6b6adf6629b5 (patch) | |
| tree | a09258fbf4993544ca97871a8f8d9cd84e5cc6b1 | |
| parent | 61d7b048d4f983d9ec2a6361644150c231717b44 (diff) | |
USB: remove LINUX_VERSION_CODE checks.
| -rw-r--r-- | drivers/usb/misc/tiglusb.c | 4 | ||||
| -rw-r--r-- | drivers/usb/storage/usb.h | 7 |
2 files changed, 0 insertions, 11 deletions
diff --git a/drivers/usb/misc/tiglusb.c b/drivers/usb/misc/tiglusb.c index bd9b38810f3c..499908292ffa 100644 --- a/drivers/usb/misc/tiglusb.c +++ b/drivers/usb/misc/tiglusb.c @@ -41,10 +41,6 @@ #include <linux/ticable.h> #include "tiglusb.h" -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) -# define minor(x) MINOR(x) -#endif - /* * Version Information */ diff --git a/drivers/usb/storage/usb.h b/drivers/usb/storage/usb.h index 35aad61fb843..0418d92651aa 100644 --- a/drivers/usb/storage/usb.h +++ b/drivers/usb/storage/usb.h @@ -203,16 +203,9 @@ extern void fill_inquiry_response(struct us_data *us, /* The scsi_lock() and scsi_unlock() macros protect the sm_state and the * single queue element srb for write access */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,3) #define scsi_unlock(host) spin_unlock_irq(host->host_lock) #define scsi_lock(host) spin_lock_irq(host->host_lock) #define sg_address(psg) (page_address((psg)->page) + (psg)->offset) -#else -#define scsi_unlock(host) spin_unlock_irq(&io_request_lock) -#define scsi_lock(host) spin_lock_irq(&io_request_lock) - -#define sg_address(psg) ((psg)->address) -#endif #endif |
