mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
drm/amdgpu: fix warning with powerplay disabled.
This just fixes a warning when you disable powerplay. Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
parent
fa6bcad781
commit
29ccf7590e
1 changed files with 1 additions and 1 deletions
|
|
@ -218,9 +218,9 @@ static int amdgpu_pp_hw_fini(void *handle)
|
|||
|
||||
static void amdgpu_pp_late_fini(void *handle)
|
||||
{
|
||||
#ifdef CONFIG_DRM_AMD_POWERPLAY
|
||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||
|
||||
#ifdef CONFIG_DRM_AMD_POWERPLAY
|
||||
if (adev->pp_enabled) {
|
||||
amdgpu_pm_sysfs_fini(adev);
|
||||
amd_powerplay_fini(adev->powerplay.pp_handle);
|
||||
|
|
|
|||
Loading…
Reference in a new issue