Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: use drm_device pointer directly rather than convert again

The convert from adev is redundant.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Guchun Chen and committed by
Alex Deucher
6ab68650 53e9d836

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 5588 5588 struct amdgpu_device *adev = drm_to_adev(dev); 5589 5589 struct amdgpu_ras *ras = amdgpu_ras_get_context(adev); 5590 5590 5591 - if (!amdgpu_device_supports_baco(adev_to_drm(adev))) 5591 + if (!amdgpu_device_supports_baco(dev)) 5592 5592 return -ENOTSUPP; 5593 5593 5594 5594 if (ras && adev->ras_enabled && ··· 5604 5604 struct amdgpu_ras *ras = amdgpu_ras_get_context(adev); 5605 5605 int ret = 0; 5606 5606 5607 - if (!amdgpu_device_supports_baco(adev_to_drm(adev))) 5607 + if (!amdgpu_device_supports_baco(dev)) 5608 5608 return -ENOTSUPP; 5609 5609 5610 5610 ret = amdgpu_dpm_baco_exit(adev);