summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/io-pgtable.c
diff options
context:
space:
mode:
authorRobin Murphy2016-01-26 18:13:14 +0100
committerWill Deacon2016-02-17 15:15:08 +0100
commit507e4c9d194360d07f9cc9ca689a17eb14e370a2 (patch)
treebcd65b5ec363e0b7214f25d677dacb0e128d29b9 /drivers/iommu/io-pgtable.c
parentiommu/io-pgtable: Add ARMv7 short descriptor support (diff)
downloadkernel-qcow2-linux-507e4c9d194360d07f9cc9ca689a17eb14e370a2.tar.gz
kernel-qcow2-linux-507e4c9d194360d07f9cc9ca689a17eb14e370a2.tar.xz
kernel-qcow2-linux-507e4c9d194360d07f9cc9ca689a17eb14e370a2.zip
iommu/io-pgtable: Add helper functions for TLB ops
Add some simple wrappers to avoid having the guts of the TLB operations spilled all over the page table implementations, and to provide a point to implement extra common functionality. Acked-by: Will Deacon <will.deacon@arm.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/io-pgtable.c')
-rw-r--r--drivers/iommu/io-pgtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/io-pgtable.c b/drivers/iommu/io-pgtable.c
index 8c615b77bcc7..876f6a76d288 100644
--- a/drivers/iommu/io-pgtable.c
+++ b/drivers/iommu/io-pgtable.c
@@ -75,6 +75,6 @@ void free_io_pgtable_ops(struct io_pgtable_ops *ops)
return;
iop = container_of(ops, struct io_pgtable, ops);
- iop->cfg.tlb->tlb_flush_all(iop->cookie);
+ io_pgtable_tlb_flush_all(iop);
io_pgtable_init_table[iop->fmt]->free(iop);
}