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

[PATCH] PCI: remove direct access of pci_devices from arch/m68k/atari/hades-pci.c

parent a986b2f2
...@@ -297,14 +297,14 @@ static void __init hades_fixup(int pci_modify) ...@@ -297,14 +297,14 @@ static void __init hades_fixup(int pci_modify)
IRQ_TT_MFP_SCC, /* Slot 2. */ IRQ_TT_MFP_SCC, /* Slot 2. */
IRQ_TT_MFP_SCSIDMA /* Slot 3. */ IRQ_TT_MFP_SCSIDMA /* Slot 3. */
}; };
struct pci_dev *dev; struct pci_dev *dev = NULL;
unsigned char slot; unsigned char slot;
/* /*
* Go through all devices, fixing up irqs as we see fit: * Go through all devices, fixing up irqs as we see fit:
*/ */
for (dev = pci_devices; dev; dev = dev->next) while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL)
{ {
if (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE) if (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE)
{ {
......
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