From e0f943b4f9a366ac7f24fa3f0e52141178d4f1b5 Mon Sep 17 00:00:00 2001 From: Guchun Chen Date: Mon, 13 Dec 2021 12:06:30 +0800 Subject: [PATCH] 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 Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 4224be241338..f2c0bca61d4d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -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);