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

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
arch/sh/drivers/pci/fixups-dreamcast.c

index d07572bfcc50cbbeef00abde9a4370acf9871d1b..cf30e2fa51be0af89c87c56113a4dd90d205a262 100644 (file)
@@ -62,7 +62,7 @@ void __init pcibios_fixup_irqs(void)
 {
        struct pci_dev *dev = 0;
 
-       while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+       for_each_pci_dev(dev) {
                /*
                 * The interrupt routing semantics here are quite trivial.
                 *