Commit 2f6ae157 authored by Jean Delvare's avatar Jean Delvare Committed by Mark M. Hoffman

hwmon/sis5595: Use PCI_REVISION_ID

Use PCI_REVISION_ID instead of our own define.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 1f5f48dd
...@@ -79,7 +79,6 @@ static struct platform_device *pdev; ...@@ -79,7 +79,6 @@ static struct platform_device *pdev;
/* Length of ISA address segment */ /* Length of ISA address segment */
#define SIS5595_EXTENT 8 #define SIS5595_EXTENT 8
/* PCI Config Registers */ /* PCI Config Registers */
#define SIS5595_REVISION_REG 0x08
#define SIS5595_BASE_REG 0x68 #define SIS5595_BASE_REG 0x68
#define SIS5595_PIN_REG 0x7A #define SIS5595_PIN_REG 0x7A
#define SIS5595_ENABLE_REG 0x7B #define SIS5595_ENABLE_REG 0x7B
...@@ -518,7 +517,7 @@ static int __devinit sis5595_probe(struct platform_device *pdev) ...@@ -518,7 +517,7 @@ static int __devinit sis5595_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, data); platform_set_drvdata(pdev, data);
/* Check revision and pin registers to determine whether 4 or 5 voltages */ /* 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 */ /* 4 voltages, 1 temp */
data->maxins = 3; data->maxins = 3;
if (data->revision >= REV2MIN) { if (data->revision >= REV2MIN) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment