diff options
Diffstat (limited to 'arch/frv/mb93090-mb00')
-rw-r--r-- | arch/frv/mb93090-mb00/pci-frv.c | 8 | ||||
-rw-r--r-- | arch/frv/mb93090-mb00/pci-irq.c | 4 |
2 files changed, 3 insertions, 9 deletions
diff --git a/arch/frv/mb93090-mb00/pci-frv.c b/arch/frv/mb93090-mb00/pci-frv.c index 83e5489cf039..0a26bf6f1cd4 100644 --- a/arch/frv/mb93090-mb00/pci-frv.c +++ b/arch/frv/mb93090-mb00/pci-frv.c | |||
@@ -142,9 +142,7 @@ static void __init pcibios_allocate_resources(int pass) | |||
142 | u16 command; | 142 | u16 command; |
143 | struct resource *r, *pr; | 143 | struct resource *r, *pr; |
144 | 144 | ||
145 | while (dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev), | 145 | for_each_pci_dev(dev) { |
146 | dev != NULL | ||
147 | ) { | ||
148 | pci_read_config_word(dev, PCI_COMMAND, &command); | 146 | pci_read_config_word(dev, PCI_COMMAND, &command); |
149 | for(idx = 0; idx < 6; idx++) { | 147 | for(idx = 0; idx < 6; idx++) { |
150 | r = &dev->resource[idx]; | 148 | r = &dev->resource[idx]; |
@@ -188,9 +186,7 @@ static void __init pcibios_assign_resources(void) | |||
188 | int idx; | 186 | int idx; |
189 | struct resource *r; | 187 | struct resource *r; |
190 | 188 | ||
191 | while (dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev), | 189 | for_each_pci_dev(dev) { |
192 | dev != NULL | ||
193 | ) { | ||
194 | int class = dev->class >> 8; | 190 | int class = dev->class >> 8; |
195 | 191 | ||
196 | /* Don't touch classless devices and host bridges */ | 192 | /* Don't touch classless devices and host bridges */ |
diff --git a/arch/frv/mb93090-mb00/pci-irq.c b/arch/frv/mb93090-mb00/pci-irq.c index 24622d89b1ca..c4a1144c98b0 100644 --- a/arch/frv/mb93090-mb00/pci-irq.c +++ b/arch/frv/mb93090-mb00/pci-irq.c | |||
@@ -48,9 +48,7 @@ void __init pcibios_fixup_irqs(void) | |||
48 | struct pci_dev *dev = NULL; | 48 | struct pci_dev *dev = NULL; |
49 | uint8_t line, pin; | 49 | uint8_t line, pin; |
50 | 50 | ||
51 | while (dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev), | 51 | for_each_pci_dev(dev) { |
52 | dev != NULL | ||
53 | ) { | ||
54 | pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); | 52 | pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); |
55 | if (pin) { | 53 | if (pin) { |
56 | dev->irq = pci_bus0_irq_routing[PCI_SLOT(dev->devfn)][pin - 1]; | 54 | dev->irq = pci_bus0_irq_routing[PCI_SLOT(dev->devfn)][pin - 1]; |