Skip to contentSkip to conversation

PPC64 pmac_pci.c replace pci_find_device with pci_get_device

PATCH New Paul Mackerras 1 participant 1 message Nov 5, 2004 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC64 pmac_pci.c replace pci_find_device with pci_get_device

This patch is from Hanna Linder.

As pci_find_device is going away using the new for_each_pci_dev macro.

arch/ppc64/kernel/pmac_pci.c +1 -1
diff -urN linux-2.5/arch/ppc64/kernel/pmac_pci.c test/arch/ppc64/kernel/pmac_pci.c
@@ -663,7 +663,7 @@
 {
 	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();