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 :-(


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@32 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1998-12-04 15:16:49 +00:00
1 parent bace775fef
commit 35e3f46b09
2 files changed
+6 -4

No files matched your search

+3 -2
View File
@@ -370,10 +370,11 @@ int i2cproc_attach_adapter(struct i2c_adapter *adapter)
kfree(client);
return res;
}
i2cproc_proc_entries[i] = proc_entry;
i2cproc_inodes[i] = proc_entry->low_ino;
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,29)) */
i2cproc_inodes[i] = proc_entry->low_ino;
return 0;
}
+3 -2
View File
@@ -370,10 +370,11 @@ int i2cproc_attach_adapter(struct i2c_adapter *adapter)
kfree(client);
return res;
}
i2cproc_proc_entries[i] = proc_entry;
i2cproc_inodes[i] = proc_entry->low_ino;
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,29)) */
i2cproc_inodes[i] = proc_entry->low_ino;
return 0;
}