Skip to contentSkip to conversation

PPC64 u3_iommu.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 u3_iommu.c use for_each_pci_dev()

This patch is from Hanna Linder.

As pci_find_device is going away I've replaced it with pci_get_device and pci_dev_put.

arch/ppc64/kernel/u3_iommu.c +1 -1
diff -urN linux-2.5/arch/ppc64/kernel/u3_iommu.c test/arch/ppc64/kernel/u3_iommu.c
@@ -291,7 +291,7 @@
 	/* We only have one iommu table on the mac for now, which makes
 	 * things simple. Setup all PCI devices to point to this table
 	 */
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+	for_each_pci_dev(dev) {
 		/* We must use pci_device_to_OF_node() to make sure that
 		 * we get the real "final" pointer to the device in the
 		 * pci_dev sysdata and not the temporary PHB one