[PATCH] PCI: arch: pci_find_device remove (frv/mb93090-mb00/pci-irq.c)
Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
d08fa1a22e
commit
3c94792f01
|
@ -48,9 +48,7 @@ void __init pcibios_fixup_irqs(void)
|
||||||
struct pci_dev *dev = NULL;
|
struct pci_dev *dev = NULL;
|
||||||
uint8_t line, pin;
|
uint8_t line, pin;
|
||||||
|
|
||||||
while (dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev),
|
for_each_pci_dev(dev) {
|
||||||
dev != NULL
|
|
||||||
) {
|
|
||||||
pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin);
|
pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin);
|
||||||
if (pin) {
|
if (pin) {
|
||||||
dev->irq = pci_bus0_irq_routing[PCI_SLOT(dev->devfn)][pin - 1];
|
dev->irq = pci_bus0_irq_routing[PCI_SLOT(dev->devfn)][pin - 1];
|
||||||
|
|
Loading…
Reference in New Issue