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:
Mark D. Studebaker committed 2001-10-07 17:02:07 +00:00
1 parent 1deacfd781
commit f0441d4486
1 file changed
+7 -8
+7 -8
View File
@@ -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;