Skip to content

Commit e0f943b

Browse files
Guchun Chenalexdeucher
authored andcommitted
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 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7e31a85 commit e0f943b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5706,7 +5706,7 @@ void amdgpu_device_invalidate_hdp(struct amdgpu_device *adev,
57065706
void amdgpu_device_halt(struct amdgpu_device *adev)
57075707
{
57085708
struct pci_dev *pdev = adev->pdev;
5709-
struct drm_device *ddev = &adev->ddev;
5709+
struct drm_device *ddev = adev_to_drm(adev);
57105710

57115711
drm_dev_unplug(ddev);
57125712

0 commit comments

Comments
 (0)