From: Kristen Accardi Date: Thu, 3 Nov 2005 00:24:39 +0000 (-0800) Subject: [PATCH] pci: use pin stored in pci_dev X-Git-Tag: v2.6.16-rc1~654^2~42 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=514d207db1fa3c3d2bd7990ebed8d81cebc7875b;p=linux-2.6-omap-h63xx.git [PATCH] pci: use pin stored in pci_dev Use the stored value of the interrupt pin rather than try to read the config again. Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 8e287a828d5..81b9b8d9bce 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -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--;