diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-12-05 21:39:19 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-10 21:41:33 -0500 |
commit | 68d315f5975c05595af52e3b758b5b6ebae1a266 (patch) | |
tree | c0578f97815519a841cc88328c4fd4b91c42b111 /arch/powerpc/platforms/pseries | |
parent | 0d9dc4b473f7224cc1798c96d5dba84b69212163 (diff) |
[POWERPC] iommu_free_table doesn't need the device_node
It only needs the iommu_table address. It also makes use of the node
name to print error messages. So just pass it the things it needs.
This reduces the places that know about the pci_dn by one.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries')
-rw-r--r-- | arch/powerpc/platforms/pseries/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c index be17d2395072..d4e9d851bb68 100644 --- a/arch/powerpc/platforms/pseries/iommu.c +++ b/arch/powerpc/platforms/pseries/iommu.c | |||
@@ -556,7 +556,7 @@ static int iommu_reconfig_notifier(struct notifier_block *nb, unsigned long acti | |||
556 | case PSERIES_RECONFIG_REMOVE: | 556 | case PSERIES_RECONFIG_REMOVE: |
557 | if (pci && pci->iommu_table && | 557 | if (pci && pci->iommu_table && |
558 | of_get_property(np, "ibm,dma-window", NULL)) | 558 | of_get_property(np, "ibm,dma-window", NULL)) |
559 | iommu_free_table(np); | 559 | iommu_free_table(pci->iommu_table, np->full_name); |
560 | break; | 560 | break; |
561 | default: | 561 | default: |
562 | err = NOTIFY_DONE; | 562 | err = NOTIFY_DONE; |