提交 29ccf759 编写于 作者: D Dave Airlie

drm/amdgpu: fix warning with powerplay disabled.

This just fixes a warning when you disable powerplay.
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 fa6bcad7
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册