This should allow amdgpu_vm_tlb_fences to outlive the amdgpu module.

Signed-off-by: Christian König <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c
index 5d26797356a3..27bf1f569830 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c
@@ -33,7 +33,6 @@ struct amdgpu_tlb_fence {
        struct amdgpu_device    *adev;
        struct dma_fence        *dependency;
        struct work_struct      work;
-       spinlock_t              lock;
        uint16_t                pasid;
 
 };
@@ -98,9 +97,8 @@ void amdgpu_vm_tlb_fence_create(struct amdgpu_device *adev, 
struct amdgpu_vm *vm
        f->dependency = *fence;
        f->pasid = vm->pasid;
        INIT_WORK(&f->work, amdgpu_tlb_fence_work);
-       spin_lock_init(&f->lock);
 
-       dma_fence_init64(&f->base, &amdgpu_tlb_fence_ops, &f->lock,
+       dma_fence_init64(&f->base, &amdgpu_tlb_fence_ops, NULL,
                         vm->tlb_fence_context, atomic64_read(&vm->tlb_seq));
 
        /* TODO: We probably need a separate wq here */
-- 
2.43.0

Reply via email to