Messages in this thread Patch in this message | | | Date | Thu, 07 Oct 2004 16:10:06 -0700 | From | Hanna Linder <> | Subject | [PATCH 2.6][8/12] 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. If someone with a PPC system could test it I would appreciate it.
Thanks.
Hanna Linder IBM Linux Technology Center
Signed-off-by: Hanna Linder <hannal@us.ibm.com>
--- diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc/platforms/pmac_pci.c linux-2.6.9-rc3-mm3patch/arch/ppc/platforms/pmac_pci.c --- linux-2.6.9-rc3-mm3cln/arch/ppc/platforms/pmac_pci.c 2004-10-07 15:54:30.000000000 -0700 +++ linux-2.6.9-rc3-mm3patch/arch/ppc/platforms/pmac_pci.c 2004-10-07 16:01:41.000000000 -0700 @@ -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); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |