Changeset 32

Show
Ignore:
Timestamp:
12/04/98 16:16:49 (14 years ago)
Author:
frodo
Message:

This should solve the 2.1 kernel /proc/bus/i2c-? problem.

The inode list that is used to determine which i2c-? file is accessed,
was not initialized for 2.1 kernels due to a #endif statement that
was one line too low :-(

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/i2c-proc.c

    r22 r32  
    371371    return res; 
    372372  } 
    373    
     373 
    374374  i2cproc_proc_entries[i] = proc_entry; 
     375#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,29)) */ 
     376 
    375377  i2cproc_inodes[i] = proc_entry->low_ino; 
    376 #endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,29)) */ 
    377378  return 0; 
    378379} 
  • lm-sensors/trunk/src/i2c-proc.c

    r22 r32  
    371371    return res; 
    372372  } 
    373    
     373 
    374374  i2cproc_proc_entries[i] = proc_entry; 
     375#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,29)) */ 
     376 
    375377  i2cproc_inodes[i] = proc_entry->low_ino; 
    376 #endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,29)) */ 
    377378  return 0; 
    378379}