diff options
| author | Guchun Chen <[email protected]> | 2021-10-08 17:21:45 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-10-08 17:22:13 +0000 |
| commit | c58a863b1ccf638feb52cf3d9c756a9f578a57ae (patch) | |
| tree | 39a20e32b17528df083ce0f36b68e26415ed11c8 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/amdkfd: rm BO resv on validation to avoid deadlock (diff) | |
| download | kernel-c58a863b1ccf638feb52cf3d9c756a9f578a57ae.tar.gz kernel-c58a863b1ccf638feb52cf3d9c756a9f578a57ae.zip | |
drm/amdgpu: use adev_to_drm for consistency when accessing drm_device
adev_to_drm is used everywhere, so improve recent changes
when accessing drm_device pointer from amdgpu_device.
Signed-off-by: Guchun Chen <[email protected]>
Acked-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 5ea36c1951f3..239e71174855 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -306,7 +306,7 @@ void amdgpu_device_mm_access(struct amdgpu_device *adev, loff_t pos, uint64_t last; int idx; - if (!drm_dev_enter(&adev->ddev, &idx)) + if (!drm_dev_enter(adev_to_drm(adev), &idx)) return; BUG_ON(!IS_ALIGNED(pos, 4) || !IS_ALIGNED(size, 4)); |
