Migrate panthor_mmu to use ops->iova_to_phys_length(ops, iova, NULL)
instead of the deprecated ops->iova_to_phys.

Signed-off-by: Guanghui Feng <[email protected]>
---
 drivers/gpu/drm/panthor/panthor_mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panthor/panthor_mmu.c 
b/drivers/gpu/drm/panthor/panthor_mmu.c
index 75d98dad7b1d..3b635fc1f651 100644
--- a/drivers/gpu/drm/panthor/panthor_mmu.c
+++ b/drivers/gpu/drm/panthor/panthor_mmu.c
@@ -903,7 +903,7 @@ static void panthor_vm_unmap_pages(struct panthor_vm *vm, 
u64 iova, u64 size)
                         * are out-of-sync. This is not supposed to happen, 
hence the
                         * above WARN_ON().
                         */
-                       while (!ops->iova_to_phys(ops, iova + unmapped_sz) &&
+                       while (ops->iova_to_phys_length(ops, iova + 
unmapped_sz, NULL) == PHYS_ADDR_MAX &&
                               unmapped_sz < pgsize * pgcount)
                                unmapped_sz += SZ_4K;
 
-- 
2.43.7

Reply via email to