Commit fe5ab573 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in arch/mips/ddb5xxx/ddb5477/pci.c

parent c949e89d
...@@ -98,10 +98,10 @@ static unsigned char irq_map[MAX_SLOT_NUM] = { ...@@ -98,10 +98,10 @@ static unsigned char irq_map[MAX_SLOT_NUM] = {
extern int vrc5477_irq_to_irq(int irq); extern int vrc5477_irq_to_irq(int irq);
void __init pcibios_fixup_irqs(void) void __init pcibios_fixup_irqs(void)
{ {
struct pci_dev *dev; struct pci_dev *dev = NULL;
int slot_num; int slot_num;
pci_for_each_dev(dev) { while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
slot_num = PCI_SLOT(dev->devfn); slot_num = PCI_SLOT(dev->devfn);
MIPS_ASSERT(slot_num < MAX_SLOT_NUM); MIPS_ASSERT(slot_num < MAX_SLOT_NUM);
MIPS_ASSERT(irq_map[slot_num] != 0xff); MIPS_ASSERT(irq_map[slot_num] != 0xff);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment