Skip to content
Commit 27100735 authored by Alex Deucher's avatar Alex Deucher
Browse files

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: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2a7d44f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment