Skip to content

Commit

Permalink
hwmon: (sis5595) re-use s_bridge->revision
Browse files Browse the repository at this point in the history
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
  • Loading branch information
Auke Kok authored and Mark M. Hoffman committed Oct 10, 2007
1 parent e7f6230 commit 7b6d1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/sis5595.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ static int __devinit sis5595_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, data);

/* 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 */
data->maxins = 3;
if (data->revision >= REV2MIN) {
Expand Down

0 comments on commit 7b6d1f0

Please sign in to comment.