Skip to content
Snippets Groups Projects
Commit 7b6d1f04 authored by Auke Kok's avatar Auke Kok Committed by Mark M. Hoffman
Browse files

hwmon: (sis5595) re-use s_bridge->revision

parent e7f62303
No related branches found
No related tags found
No related merge requests found
...@@ -517,7 +517,7 @@ static int __devinit sis5595_probe(struct platform_device *pdev) ...@@ -517,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, PCI_REVISION_ID, &data->revision); data->revision = s_bridge->revision;
/* 4 voltages, 1 temp */ /* 4 voltages, 1 temp */
data->maxins = 3; data->maxins = 3;
if (data->revision >= REV2MIN) { if (data->revision >= REV2MIN) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment