Changeset 3754
- Timestamp:
- 01/13/03 12:35:52 (10 years ago)
- Location:
- i2c/trunk/kernel
- Files:
-
- 2 modified
-
i2c-elektor.c (modified) (2 diffs)
-
i2c-pcf-epp.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/kernel/i2c-elektor.c
r3753 r3754 59 59 need to be rewriten - but for now just remove this for simpler reading */ 60 60 61 #if (LINUX_VERSION_CODE < 0x020301)62 static struct wait_queue *pcf_wait = NULL;63 #else64 61 static wait_queue_head_t pcf_wait; 65 #endif66 62 static int pcf_pending; 67 63 static spinlock_t irq_driver_lock = SPIN_LOCK_UNLOCKED; … … 285 281 } 286 282 287 #if (LINUX_VERSION_CODE >= 0x020301)288 283 init_waitqueue_head(&pcf_wait); 289 #endif290 284 if (pcf_isa_init() == 0) { 291 285 if (i2c_pcf_add_bus(&pcf_isa_ops) < 0) { -
i2c/trunk/kernel/i2c-pcf-epp.c
r3742 r3754 36 36 static int i2c_debug=0; 37 37 static struct i2c_pcf_epp gpe; 38 #if (LINUX_VERSION_CODE < 0x020301)39 static struct wait_queue *pcf_wait = NULL;40 #else41 38 static wait_queue_head_t pcf_wait; 42 #endif43 39 static int pcf_pending; 44 40 static spinlock_t irq_driver_lock = SPIN_LOCK_UNLOCKED; … … 270 266 271 267 pcf_epp_data.data = (void *)pepp; 272 #if (LINUX_VERSION_CODE >= 0x020301)273 268 init_waitqueue_head(&pcf_wait); 274 #endif275 269 if (pcf_epp_init(pepp) == 0) { 276 270 int ret;
