Skip to contentSkip to conversation

scsi: remove LINUX_VERSION_CODE macro usage from dpt

PATCH New Pekka Enberg 1 participant 1 message Jan 14, 2006 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: remove LINUX_VERSION_CODE macro usage from dpt

From: Pekka Enberg <[email protected]>

This patch removes LINUX_VERSION_CODE macro usage from the dpt driver in drivers/scsi/.

---

 drivers/scsi/dpt/dpti_i2o.h |   10 ----------
 1 file changed, 10 deletions(-)
drivers/scsi/dpt/dpti_i2o.h +0 -10
Index: 2.6/drivers/scsi/dpt/dpti_i2o.h
===================================================================
@@ -48,21 +48,11 @@
  *	I2O Interface Objects
  */
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
-
-#define DECLARE_MUTEX(name) struct semaphore name=MUTEX
-
-typedef struct wait_queue *adpt_wait_queue_head_t;
-#define ADPT_DECLARE_WAIT_QUEUE_HEAD(wait) adpt_wait_queue_head_t wait = NULL
-typedef struct wait_queue adpt_wait_queue_t;
-#else
-
 #include <linux/wait.h>
 typedef wait_queue_head_t adpt_wait_queue_head_t;
 #define ADPT_DECLARE_WAIT_QUEUE_HEAD(wait) DECLARE_WAIT_QUEUE_HEAD(wait)
 typedef wait_queue_t adpt_wait_queue_t;
 
-#endif
 /*
  * message structures
  */