mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
fix detection thinko broken yesterday - thanks martin
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1198 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
1deacfd781
commit
f0441d4486
1 file changed
+7
-8
@@ -211,15 +211,14 @@ int vt596_setup(void)
|
||||
/* try 2nd address and config reg. for 596 */
|
||||
if((num->dev == PCI_DEVICE_ID_VIA_82C596_3) &&
|
||||
(!pci_read_config_word(VT596_dev, SMBBA2, &vt596_smba)) &&
|
||||
(vt596_smba & 0x1))
|
||||
(vt596_smba & 0x1)) {
|
||||
smb_cf_hstcfg = 0x84;
|
||||
else
|
||||
goto FAIL;
|
||||
} else {
|
||||
FAIL:
|
||||
printk
|
||||
("i2c-viapro.o: Cannot configure SMBus I/O Base address\n");
|
||||
return(-ENODEV);
|
||||
} else {
|
||||
/* no matches at all */
|
||||
printk("i2c-viapro.o: Cannot configure SMBus "
|
||||
"I/O Base address\n");
|
||||
return(-ENODEV);
|
||||
}
|
||||
}
|
||||
}
|
||||
vt596_smba &= 0xfff0;
|
||||
|
||||
Reference in new issue
Block a user