summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorKristen Accardi <kristen.c.accardi@intel.com>2005-11-02 16:24:39 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-09 12:13:13 -0800
commit514d207db1fa3c3d2bd7990ebed8d81cebc7875b (patch)
treeedb9820cc9d01bdb8b7eabb9f27d888acab37563 /drivers/pci
parent8015a01486a0f789c9e98e8bf1f12a3ccb535b30 (diff)
downloadblackbird-op-linux-514d207db1fa3c3d2bd7990ebed8d81cebc7875b.tar.gz
blackbird-op-linux-514d207db1fa3c3d2bd7990ebed8d81cebc7875b.zip
[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 <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 8e287a828d5d..81b9b8d9bceb 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--;
OpenPOWER on IntegriCloud