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:33:34 +0000 (14:33 -0800)
commit269b571f0d6ac7b2da7f9d4d7ea56ccff1ea998d
tree0eb434474551815a3aa765233f68c953bdd34d6c
parent930a50a45963c8da0a27fbee73ae462d8ea54aca
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