PPC64 pSeries_iommu.c use for_each_pci_dev()
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.
Signed-off-by Hanna Linder <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
Signed-off-by Paul Mackerras <[email protected]>
arch/ppc64/kernel/pSeries_iommu.c +1 -1
@@ -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 )