Commit b36d9bf7 authored by Hanna V. Linder's avatar Hanna V. Linder Committed by Greg Kroah-Hartman

[PATCH] pmac_pci.c: replace pci_find_device with pci_get_device

As pci_find_device is going away I've replaced it with pci_get_device.
Signed-off-by: default avatarHanna Linder <hannal@us.ibm.com>
parent c1fdbf7c
...@@ -889,7 +889,7 @@ pcibios_fixup_OF_interrupts(void) ...@@ -889,7 +889,7 @@ pcibios_fixup_OF_interrupts(void)
* should find the device node and apply the interrupt * should find the device node and apply the interrupt
* obtained from the OF device-tree * obtained from the OF device-tree
*/ */
while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { for_each_pci_dev(dev) {
struct device_node *node; struct device_node *node;
node = pci_device_to_OF_node(dev); node = pci_device_to_OF_node(dev);
/* this is the node, see if it has interrupts */ /* this is the node, see if it has interrupts */
...@@ -989,7 +989,7 @@ pmac_pcibios_after_init(void) ...@@ -989,7 +989,7 @@ pmac_pcibios_after_init(void)
* *
* -- BenH * -- BenH
*/ */
while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { for_each_pci_dev(dev) {
if ((dev->class >> 16) == PCI_BASE_CLASS_STORAGE) if ((dev->class >> 16) == PCI_BASE_CLASS_STORAGE)
pci_enable_device(dev); 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