[PATCH 2.6] pmac_pci.c replace pci_find_device with pci_get_device

From: Hanna Linder
Date: Fri Oct 08 2004 - 15:18:46 EST




As pci_find_device is going away I've replaced it with pci_get_device and pci_dev_put.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@xxxxxxxxxx>

---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pmac_pci.c linux-2.6.9-rc3-mm3patch/arch/ppc64/kernel/pmac_pci.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pmac_pci.c 2004-10-07 15:54:29.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch/arch/ppc64/kernel/pmac_pci.c 2004-10-08 10:42:47.000000000 -0700
@@ -669,7 +669,7 @@ void __init pmac_pcibios_fixup(void)
{
struct pci_dev *dev = NULL;

- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL)
+ for_each_pci_dev(dev)
pci_read_irq_line(dev);

pci_fix_bus_sysdata();

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/