Skip to contentSkip to conversation

PPC64 pSeries_pci.c use for_each_pci_dev()

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC64 pSeries_pci.c use for_each_pci_dev()

This patch is from Hanna Linder.

As pci_find_device is going away using the new for_each_pci_dev macro.

arch/ppc64/kernel/pSeries_pci.c +1 -1
diff -urN linux-2.5/arch/ppc64/kernel/pSeries_pci.c test/arch/ppc64/kernel/pSeries_pci.c
@@ -548,7 +548,7 @@
 
 	check_s7a();
 
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+	for_each_pci_dev(dev) {
 		pci_read_irq_line(dev);
 		if (s7a_workaround) {
 			if (dev->irq > 16) {