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

[PATCH] PCI: remove usage of pci_for_each_dev() in arch/ppc/platforms/pmac_pci.c

parent c47116cc
......@@ -494,7 +494,7 @@ add_bridges(struct device_node *dev)
static void __init
pcibios_fixup_OF_interrupts(void)
{
struct pci_dev* dev;
struct pci_dev* dev = NULL;
/*
* Open Firmware often doesn't initialize the
......@@ -502,7 +502,7 @@ pcibios_fixup_OF_interrupts(void)
* should find the device node and apply the interrupt
* obtained from the OF device-tree
*/
pci_for_each_dev(dev) {
while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
struct device_node *node;
node = pci_device_to_OF_node(dev);
/* this is the node, see if it has interrupts */
......@@ -590,7 +590,7 @@ pmac_pcibios_after_init(void)
struct device_node* nd;
#ifdef CONFIG_BLK_DEV_IDE
struct pci_dev *dev;
struct pci_dev *dev = NULL;
/* OF fails to initialize IDE controllers on macs
* (and maybe other machines)
......@@ -602,7 +602,7 @@ pmac_pcibios_after_init(void)
*
* -- BenH
*/
pci_for_each_dev(dev) {
while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
if ((dev->class >> 16) == PCI_BASE_CLASS_STORAGE)
pci_enable_device(dev);
}
......
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