]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] pci: use pin stored in pci_dev
authorKristen Accardi <kristen.c.accardi@intel.com>
Thu, 3 Nov 2005 00:24:39 +0000 (16:24 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 Jan 2006 20:13:13 +0000 (12:13 -0800)
Use the stored value of the interrupt pin rather than try to read
the config again.

Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci.c

index 8e287a828d5d3c1886d91e5e122ea544a7fc446c..81b9b8d9bceb37b78113924d6a112fb661cea820 100644 (file)
@@ -587,7 +587,7 @@ pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge)
 {
        u8 pin;
 
-       pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin);
+       pin = dev->pin;
        if (!pin)
                return -1;
        pin--;