]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/radeon/dpm: don't add pwm attributes if DPM is disabled
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Oct 2015 13:30:42 +0000 (09:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Oct 2015 19:45:54 +0000 (15:45 -0400)
commit2a7d44f47f53fa1be677f44c73d78b1bcf9c05d9
tree45f1a469b79f0d73c424c773aeb2239d6c50f853
parentf6c7aba47bcc0b1cc2085c8d8af80f8c02f28269
drm/radeon/dpm: don't add pwm attributes if DPM is disabled

PWM fan control is only available with DPM.  If DPM disabled,
don't expose the PWM fan controls to avoid a crash.

Bug:
https://bugs.freedesktop.org/show_bug.cgi?id=92524

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_pm.c