mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-12 16:50:15 +00:00
Small bug fixed which made it impossible to detect more than one
LM78. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@77 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
446a74bd6a
commit
75dd7e42d7
2 files changed
+4
No files matched your search
@@ -389,6 +389,7 @@ int lm78_detect_isa(struct isa_adapter *adapter)
|
||||
lm78_dir_table_template)) < 0)
|
||||
goto ERROR4;
|
||||
((struct lm78_data *) (new_client->data)) -> sysctl_id = err;
|
||||
err = 0;
|
||||
|
||||
/* Initialize the LM78 chip */
|
||||
lm78_init_client((struct i2c_client *) new_client);
|
||||
@@ -506,6 +507,7 @@ int lm78_detect_smbus(struct i2c_adapter *adapter)
|
||||
lm78_dir_table_template)) < 0)
|
||||
goto ERROR4;
|
||||
((struct lm78_data *) (new_client->data))->sysctl_id = err;
|
||||
err = 0;
|
||||
|
||||
/* Initialize the LM78 chip */
|
||||
lm78_init_client(new_client);
|
||||
|
||||
Reference in new issue
Block a user