drm/amdgpu: use adev_to_drm to get drm_device pointer

Updated for consistency when accessing drm_device from amdgpu driver.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Guchun Chen 2021-12-13 12:06:30 +08:00 committed by Alex Deucher
parent 7e31a8585b
commit e0f943b4f9
1 changed files with 1 additions and 1 deletions

View File

@ -5706,7 +5706,7 @@ void amdgpu_device_invalidate_hdp(struct amdgpu_device *adev,
void amdgpu_device_halt(struct amdgpu_device *adev)
{
struct pci_dev *pdev = adev->pdev;
struct drm_device *ddev = &adev->ddev;
struct drm_device *ddev = adev_to_drm(adev);
drm_dev_unplug(ddev);