[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>
This commit is contained in:
Родитель
8015a01486
Коммит
514d207db1
|
@ -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--;
|
||||
|
|
Загрузка…
Ссылка в новой задаче