Changeset 3754

Show
Ignore:
Timestamp:
01/13/03 12:35:52 (10 years ago)
Author:
kmalkki
Message:

(Kyösti)

Missed some pre-2.4 code on the first run.

Location:
i2c/trunk/kernel
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/kernel/i2c-elektor.c

    r3753 r3754  
    5959  need to be rewriten - but for now just remove this for simpler reading */ 
    6060 
    61 #if (LINUX_VERSION_CODE < 0x020301) 
    62 static struct wait_queue *pcf_wait = NULL; 
    63 #else 
    6461static wait_queue_head_t pcf_wait; 
    65 #endif 
    6662static int pcf_pending; 
    6763static spinlock_t irq_driver_lock = SPIN_LOCK_UNLOCKED; 
     
    285281        } 
    286282 
    287 #if (LINUX_VERSION_CODE >= 0x020301) 
    288283        init_waitqueue_head(&pcf_wait); 
    289 #endif 
    290284        if (pcf_isa_init() == 0) { 
    291285                if (i2c_pcf_add_bus(&pcf_isa_ops) < 0) { 
  • i2c/trunk/kernel/i2c-pcf-epp.c

    r3742 r3754  
    3636static int i2c_debug=0; 
    3737static struct i2c_pcf_epp gpe; 
    38 #if (LINUX_VERSION_CODE < 0x020301) 
    39 static struct wait_queue *pcf_wait = NULL; 
    40 #else 
    4138static wait_queue_head_t pcf_wait; 
    42 #endif 
    4339static int pcf_pending; 
    4440static spinlock_t irq_driver_lock = SPIN_LOCK_UNLOCKED; 
     
    270266 
    271267  pcf_epp_data.data = (void *)pepp; 
    272 #if (LINUX_VERSION_CODE >= 0x020301) 
    273268  init_waitqueue_head(&pcf_wait); 
    274 #endif 
    275269  if (pcf_epp_init(pepp) == 0) { 
    276270    int ret;