mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-25 12:14:33 +00:00
fix broken revision detection I did in April. Thanks David Zaffiro.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1094 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
7a6ba966ed
commit
9baa5ceb85
1 file changed
+3
-2
@@ -411,8 +411,9 @@ int sis5595_detect(struct i2c_adapter *adapter, int address,
|
||||
/* Reserve the ISA region */
|
||||
request_region(address, SIS5595_EXTENT, type_name);
|
||||
|
||||
pci_read_config_byte(s_bridge, SIS5595_PIN_REG, &(data->revision));
|
||||
if(data->revision < 0xc0) {
|
||||
/* Check revision and pin registers to determine whether 3 or 4 voltages */
|
||||
pci_read_config_byte(s_bridge, SIS5595_REVISION_REG, &(data->revision));
|
||||
if(data->revision < 0xb0) {
|
||||
data->maxins = 3;
|
||||
} else {
|
||||
pci_read_config_byte(s_bridge, SIS5595_PIN_REG, &val);
|
||||
|
||||
Reference in new issue
Block a user