]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] pmac_pci.c: replace pci_find_device with pci_get_device
authorHanna V. Linder <hannal@us.ibm.com>
Fri, 12 Nov 2004 06:11:49 +0000 (22:11 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 12 Nov 2004 06:11:49 +0000 (22:11 -0800)
As pci_find_device is going away I've replaced it with pci_get_device.

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
arch/ppc/platforms/pmac_pci.c

index 4e53bea90e5e9d56248e9ab02804c74352c32ec9..0b673612b1971f195736d2c3eca70da901f983d4 100644 (file)
@@ -889,7 +889,7 @@ pcibios_fixup_OF_interrupts(void)
         * should find the device node and apply the interrupt
         * 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;
                node = pci_device_to_OF_node(dev);
                /* this is the node, see if it has interrupts */
@@ -989,7 +989,7 @@ pmac_pcibios_after_init(void)
         *
         * -- 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)
                        pci_enable_device(dev);
        }