]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Nov 2015 22:37:33 +0000 (14:37 -0800)
commit9b8fb2c38b4232516ef8d27373c9a8ea334b0ad5
tree1251be70be24df05f5457cfd171eb3b76e045a28
parent03cf3c9337feb72ef10b85a2fdba27b358bffa5b
drm/radeon/dpm: don't add pwm attributes if DPM is disabled

commit 2a7d44f47f53fa1be677f44c73d78b1bcf9c05d9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_pm.c