]> git.baikalelectronics.ru Git - kernel.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)
commit5b80890b31503ccaecb3e556d770265e79e543c5
tree45f1a469b79f0d73c424c773aeb2239d6c50f853
parenta0b48d06dc0a7adc66043aa310bfdc86fc0fe8e3
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