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:
Jean Delvare committed 2004-12-04 21:18:34 +00:00
1 parent 30e56573c6
commit 7683ac84a4
53 files changed
+100 -54

No files matched your search

+1 -1
View File
@@ -354,7 +354,7 @@ static int lm83_detect(struct i2c_adapter *adapter, int address, unsigned
*/
if ((err = i2c_register_entry(new_client, type_name,
lm83_dir_table_template)) < 0)
lm83_dir_table_template, THIS_MODULE)) < 0)
{
#ifdef DEBUG
printk("lm83.o: Failed registering directory entry.\n");