Skip to contentSkip to conversation

PPC64 pSeries_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 pSeries_iommu.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_iommu.c +1 -1
diff -urN linux-2.5/arch/ppc64/kernel/pSeries_iommu.c test/arch/ppc64/kernel/pSeries_iommu.c
@@ -426,7 +426,7 @@
 	 * pci device_node.  This means get_iommu_table() won't need to search
 	 * up the device tree to find it.
 	 */
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+	for_each_pci_dev(dev) {
 		mydn = dn = PCI_GET_DN(dev);
 
 		while (dn && dn->iommu_table == NULL)