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

+2 -1
View File
@@ -311,7 +311,8 @@ static int max6650_detect(struct i2c_adapter *adapter, int address, unsigned
* Register a new directory entry.
*/
if ((err = i2c_register_entry(new_client, type_name,
max6650_dir_table_template)) < 0) {
max6650_dir_table_template,
THIS_MODULE)) < 0) {
#ifdef DEBUG
printk("max6650.o: Failed registering directory entry.\n");
#endif