mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-25 12:14:33 +00:00
Use PCI_REVISION_ID instead of our own define (backport from Linux 2.6.)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4633 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
ee8268e390
commit
d69b87bb74
1 file changed
+1
-2
@@ -97,7 +97,6 @@ static int blacklist[] = {
|
||||
/* Length of ISA address segment */
|
||||
#define SIS5595_EXTENT 8
|
||||
/* PCI Config Registers */
|
||||
#define SIS5595_REVISION_REG 0x08
|
||||
#define SIS5595_BASE_REG 0x68
|
||||
#define SIS5595_PIN_REG 0x7A
|
||||
#define SIS5595_ENABLE_REG 0x7B
|
||||
@@ -394,7 +393,7 @@ int sis5595_detect(struct i2c_adapter *adapter, int address,
|
||||
request_region(address, SIS5595_EXTENT, type_name);
|
||||
|
||||
/* Check revision and pin registers to determine whether 4 or 5 voltages */
|
||||
pci_read_config_byte(s_bridge, SIS5595_REVISION_REG, &(data->revision));
|
||||
pci_read_config_byte(s_bridge, PCI_REVISION_ID, &(data->revision));
|
||||
/* 4 voltages, 1 temp */
|
||||
data->maxins = 3;
|
||||
if (data->revision >= REV2MIN) {
|
||||
|
||||
Reference in new issue
Block a user