Commit e0f943b4 authored by Guchun Chen's avatar Guchun Chen Committed by Alex Deucher

drm/amdgpu: use adev_to_drm to get drm_device pointer

Updated for consistency when accessing drm_device from amdgpu driver.
Signed-off-by: default avatarGuchun Chen <guchun.chen@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7e31a858
...@@ -5706,7 +5706,7 @@ void amdgpu_device_invalidate_hdp(struct amdgpu_device *adev, ...@@ -5706,7 +5706,7 @@ void amdgpu_device_invalidate_hdp(struct amdgpu_device *adev,
void amdgpu_device_halt(struct amdgpu_device *adev) void amdgpu_device_halt(struct amdgpu_device *adev)
{ {
struct pci_dev *pdev = adev->pdev; struct pci_dev *pdev = adev->pdev;
struct drm_device *ddev = &adev->ddev; struct drm_device *ddev = adev_to_drm(adev);
drm_dev_unplug(ddev); drm_dev_unplug(ddev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment