Changeset 147
- Timestamp:
- 01/07/99 21:07:15 (10 years ago)
- Files:
-
- lm-sensors/trunk/CHANGES (modified) (1 diff)
- lm-sensors/trunk/kernel/i2c-proc.c (modified) (2 diffs)
- lm-sensors/trunk/src/i2c-proc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/CHANGES
r146 r147 14 14 cvs diff -r V2-0-0 -r V2-0-1 -u 15 15 16 2.1.1 (19990107) 17 Module i2c-proc.o: Hack to make /proc/bus/ possible for kernels 2.0.35 18 and older 19 Module gl518sm.o: Miscelaneous bugs and problems solved 16 20 17 21 2.1.0 (19981230) lm-sensors/trunk/kernel/i2c-proc.c
r96 r147 71 71 /* gid */ 0, 72 72 /* size */ 0, 73 /* ops */ &proc_dir_inode_operations, 73 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,0,36)) 74 /* ops */ &proc_dir_inode_operations, 75 #endif 74 76 }; 75 77 … … 171 173 #else /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,29)) */ 172 174 /* In Linux 2.0.x, there is no /proc/bus! But I hope no other module 173 introduced it, or we are fucked. */ 175 introduced it, or we are fucked. And 2.0.35 and earlier does not 176 export proc_dir_inode_operations, so we grab it from proc_net, 177 which also uses it. Not nice. */ 178 /* #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,0,36) */ 179 proc_bus_dir.ops = proc_net.ops; 180 /* #endif */ 174 181 if ((res = proc_register_dynamic(&proc_root, &proc_bus_dir))) { 175 182 printk("i2c-proc.o: Could not create /proc/bus/, module not inserted.\n"); lm-sensors/trunk/src/i2c-proc.c
r96 r147 71 71 /* gid */ 0, 72 72 /* size */ 0, 73 /* ops */ &proc_dir_inode_operations, 73 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,0,36)) 74 /* ops */ &proc_dir_inode_operations, 75 #endif 74 76 }; 75 77 … … 171 173 #else /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,29)) */ 172 174 /* In Linux 2.0.x, there is no /proc/bus! But I hope no other module 173 introduced it, or we are fucked. */ 175 introduced it, or we are fucked. And 2.0.35 and earlier does not 176 export proc_dir_inode_operations, so we grab it from proc_net, 177 which also uses it. Not nice. */ 178 /* #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,0,36) */ 179 proc_bus_dir.ops = proc_net.ops; 180 /* #endif */ 174 181 if ((res = proc_register_dynamic(&proc_root, &proc_bus_dir))) { 175 182 printk("i2c-proc.o: Could not create /proc/bus/, module not inserted.\n");
