]> err.no Git - linux-2.6/commitdiff
hwmon: (sis5595) re-use s_bridge->revision
authorAuke Kok <auke-jan.h.kok@intel.com>
Mon, 27 Aug 2007 23:17:01 +0000 (16:17 -0700)
committerMark M. Hoffman <mhoffman@lightlink.com>
Wed, 10 Oct 2007 02:56:30 +0000 (22:56 -0400)
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>
drivers/hwmon/sis5595.c

index 3de9721aa67fcf5df2829511f8fefc4a56904366..79a5376a8d818c18de57471ef609832c87f7184c 100644 (file)
@@ -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) {