mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
Restore controlling_mod argument to i2c_register_entry(). This
is needed to properly lock chip drivers in memory while anyone uses their /proc entries. This also brings back compatibility with the 2.4 Linux kernel. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2784 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
30e56573c6
commit
7683ac84a4
53 files changed
+100
-54
No files matched your search
+2
-1
@@ -560,7 +560,8 @@ int it87_detect(struct i2c_adapter *adapter, int address,
|
||||
/* Register a new directory entry with module sensors */
|
||||
if ((i = i2c_register_entry(new_client,
|
||||
type_name,
|
||||
it87_dir_table_template)) < 0) {
|
||||
it87_dir_table_template,
|
||||
THIS_MODULE)) < 0) {
|
||||
err = i;
|
||||
goto ERROR4;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user