]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/dpm: don't add pwm attributes if DPM is disabled
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Oct 2015 19:49:11 +0000 (15:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Oct 2015 19:53:54 +0000 (15:53 -0400)
commitdebc2f7e55f4b20241da170b1dce7372ce0f7d6b
tree8ab5461d7721c5923aab4a3aecf530038fd1100a
parentdc4e80ab395df343f69eb136d66b8baaf9f3418b
drm/amdgpu/dpm: don't add pwm attributes if DPM is disabled

PWM fan control is only available with DPM.  There is no non-DPM
support on amdgpu, so we should never get a crash here because
the sysfs nodes would never be created in the first place. Add the
check just in case to be on the safe side.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c