*/
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) &&