Remove the iova_to_phys wrapper function and .iova_to_phys assignment
from DART io-pgtable, as all callers now use iova_to_phys_length.

Signed-off-by: Guanghui Feng <[email protected]>
---
 drivers/iommu/io-pgtable-dart.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/drivers/iommu/io-pgtable-dart.c b/drivers/iommu/io-pgtable-dart.c
index 2dac21a578a7..01c4c022830b 100644
--- a/drivers/iommu/io-pgtable-dart.c
+++ b/drivers/iommu/io-pgtable-dart.c
@@ -333,18 +333,6 @@ static size_t dart_unmap_pages(struct io_pgtable_ops *ops, 
unsigned long iova,
        return i * pgsize;
 }
 
-static phys_addr_t dart_iova_to_phys_length(struct io_pgtable_ops *ops,
-                                           unsigned long iova,
-                                           size_t *mapped_length);
-
-static phys_addr_t dart_iova_to_phys(struct io_pgtable_ops *ops,
-                                    unsigned long iova)
-{
-       phys_addr_t phys = dart_iova_to_phys_length(ops, iova, NULL);
-
-       return (phys == PHYS_ADDR_MAX) ? 0 : phys;
-}
-
 static phys_addr_t dart_iova_to_phys_length(struct io_pgtable_ops *ops,
                                            unsigned long iova,
                                            size_t *mapped_length)
@@ -416,7 +404,6 @@ dart_alloc_pgtable(struct io_pgtable_cfg *cfg)
        data->iop.ops = (struct io_pgtable_ops) {
                .map_pages              = dart_map_pages,
                .unmap_pages            = dart_unmap_pages,
-               .iova_to_phys           = dart_iova_to_phys,
                .iova_to_phys_length    = dart_iova_to_phys_length,
        };
 
-- 
2.43.7

Reply via email to