mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-12 16:50:15 +00:00
Fix a bug in detection. Could have failed to detect the chip and
still return with no error code. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2055 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
4a0ac962d4
commit
08cebfef4c
1 file changed
+1
-1
@@ -970,8 +970,8 @@ static int w83781d_detect(struct i2c_adapter *adapter, int address,
|
|||||||
&& (val2 != 0x94))
|
&& (val2 != 0x94))
|
||||||
|| ((val1 & 0x80) && (val2 != 0x5c) && (val2 != 0x12)
|
|| ((val1 & 0x80) && (val2 != 0x5c) && (val2 != 0x12)
|
||||||
&& (val2 != 0x06)))) {
|
&& (val2 != 0x06)))) {
|
||||||
goto ERROR1;
|
|
||||||
err = -ENODEV;
|
err = -ENODEV;
|
||||||
|
goto ERROR1;
|
||||||
}
|
}
|
||||||
/* If Winbond SMBus, check address at 0x48. Asus doesn't support
|
/* If Winbond SMBus, check address at 0x48. Asus doesn't support
|
||||||
except maybe (hopefully) for the as99127f rev.2 */
|
except maybe (hopefully) for the as99127f rev.2 */
|
||||||
|
|||||||
Reference in new issue
Block a user