aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc64/kernel/iommu.c')
-rw-r--r--arch/ppc64/kernel/iommu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/iommu.c b/arch/ppc64/kernel/iommu.c
index 845eebd1e28..4d9b4388918 100644
--- a/arch/ppc64/kernel/iommu.c
+++ b/arch/ppc64/kernel/iommu.c
@@ -438,7 +438,8 @@ struct iommu_table *iommu_init_table(struct iommu_table *tbl)
438 438
439void iommu_free_table(struct device_node *dn) 439void iommu_free_table(struct device_node *dn)
440{ 440{
441 struct iommu_table *tbl = dn->iommu_table; 441 struct pci_dn *pdn = dn->data;
442 struct iommu_table *tbl = pdn->iommu_table;
442 unsigned long bitmap_sz, i; 443 unsigned long bitmap_sz, i;
443 unsigned int order; 444 unsigned int order;
444 445
@@ -518,7 +519,7 @@ void iommu_unmap_single(struct iommu_table *tbl, dma_addr_t dma_handle,
518 * to the dma address (mapping) of the first page. 519 * to the dma address (mapping) of the first page.
519 */ 520 */
520void *iommu_alloc_coherent(struct iommu_table *tbl, size_t size, 521void *iommu_alloc_coherent(struct iommu_table *tbl, size_t size,
521 dma_addr_t *dma_handle, unsigned int __nocast flag) 522 dma_addr_t *dma_handle, gfp_t flag)
522{ 523{
523 void *ret = NULL; 524 void *ret = NULL;
524 dma_addr_t mapping; 525 dma_addr_t mapping;