diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-10 12:52:26 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-10 12:52:26 (GMT) |
commit | 76f9f87fa51c9fb62c17986e2066ed467ac2da05 (patch) | |
tree | 7e9d351fe87d543b4054a2869718d4b6370b6a29 /arch/powerpc/platforms/iseries/iommu.c | |
parent | 40ef8cbc6d360e564573eb19582249c35d8ba330 (diff) | |
download | linux-fsl-qoriq-76f9f87fa51c9fb62c17986e2066ed467ac2da05.tar.xz |
powerpc: Get iseries to compile with ARCH=powerpc
This moves the Device_List member from struct device_node to
struct pci_dn, which cleans up the device_node and makes the code
a little simpler.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/iseries/iommu.c')
-rw-r--r-- | arch/powerpc/platforms/iseries/iommu.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/iseries/iommu.c b/arch/powerpc/platforms/iseries/iommu.c index 9ac735d..e40c50b 100644 --- a/arch/powerpc/platforms/iseries/iommu.c +++ b/arch/powerpc/platforms/iseries/iommu.c @@ -89,11 +89,10 @@ static void tce_free_iSeries(struct iommu_table *tbl, long index, long npages) */ static struct iommu_table *iommu_table_find(struct iommu_table * tbl) { - struct device_node *dp; - - list_for_each_entry(dp, &iSeries_Global_Device_List, Device_List) { - struct iommu_table *it = PCI_DN(dp)->iommu_table; + struct pci_dn *pdn; + list_for_each_entry(pdn, &iSeries_Global_Device_List, Device_List) { + struct iommu_table *it = pdn->iommu_table; if ((it != NULL) && (it->it_type == TCE_PCI) && (it->it_offset == tbl->it_offset) && |