diff options
Diffstat (limited to 'arch/powerpc/kernel/iommu.c')
-rw-r--r-- | arch/powerpc/kernel/iommu.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c index 79a85d656871..a3c406aca664 100644 --- a/arch/powerpc/kernel/iommu.c +++ b/arch/powerpc/kernel/iommu.c | |||
@@ -532,16 +532,14 @@ struct iommu_table *iommu_init_table(struct iommu_table *tbl, int nid) | |||
532 | return tbl; | 532 | return tbl; |
533 | } | 533 | } |
534 | 534 | ||
535 | void iommu_free_table(struct device_node *dn) | 535 | void iommu_free_table(struct iommu_table *tbl, const char *node_name) |
536 | { | 536 | { |
537 | struct pci_dn *pdn = dn->data; | ||
538 | struct iommu_table *tbl = pdn->iommu_table; | ||
539 | unsigned long bitmap_sz, i; | 537 | unsigned long bitmap_sz, i; |
540 | unsigned int order; | 538 | unsigned int order; |
541 | 539 | ||
542 | if (!tbl || !tbl->it_map) { | 540 | if (!tbl || !tbl->it_map) { |
543 | printk(KERN_ERR "%s: expected TCE map for %s\n", __FUNCTION__, | 541 | printk(KERN_ERR "%s: expected TCE map for %s\n", __FUNCTION__, |
544 | dn->full_name); | 542 | node_name); |
545 | return; | 543 | return; |
546 | } | 544 | } |
547 | 545 | ||
@@ -550,7 +548,7 @@ void iommu_free_table(struct device_node *dn) | |||
550 | for (i = 0; i < (tbl->it_size/64); i++) { | 548 | for (i = 0; i < (tbl->it_size/64); i++) { |
551 | if (tbl->it_map[i] != 0) { | 549 | if (tbl->it_map[i] != 0) { |
552 | printk(KERN_WARNING "%s: Unexpected TCEs for %s\n", | 550 | printk(KERN_WARNING "%s: Unexpected TCEs for %s\n", |
553 | __FUNCTION__, dn->full_name); | 551 | __FUNCTION__, node_name); |
554 | break; | 552 | break; |
555 | } | 553 | } |
556 | } | 554 | } |