PCI: Use ICH6_GPIO_EN in ich6_lpc_acpi_gpio
authorJean Delvare <khali@linux-fr.org>
Fri, 15 Apr 2011 08:24:07 +0000 (10:24 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 10 May 2011 22:43:34 +0000 (15:43 -0700)
We were just lucky that ICH4_GPIO_EN and ICH6_GPIO_EN happen to have
the same value.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/quirks.c

index 227ec4f73f1137c9ac89746710e30a779c8ab069..4fc1b0daedafae035bf4c402548366b2ae4f97bc 100644 (file)
@@ -606,7 +606,7 @@ static void __devinit ich6_lpc_acpi_gpio(struct pci_dev *dev)
        }
 
        pci_read_config_byte(dev, ICH6_GPIO_CNTL, &enable);
-       if (enable & ICH4_GPIO_EN) {
+       if (enable & ICH6_GPIO_EN) {
                pci_read_config_dword(dev, ICH6_GPIOBASE, &region);
                region &= PCI_BASE_ADDRESS_IO_MASK;
                if (region >= PCIBIOS_MIN_IO)