drm/amd/pp: Skip fan attributes if fan not present
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 27 Apr 2018 05:46:08 +0000 (13:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:44:18 +0000 (13:44 -0500)
commitfc5a136ddad944d2f909d3ffcde924b7afa792f4
tree9d5b300afbb3ab4d2470fe9b6f4adfbd6fca083f
parent719a39a1e9b2dfbfb86f17a8da696b714a3b885d
drm/amd/pp: Skip fan attributes if fan not present

With powerplay enabled, also need to skip fan attributes
if no fan present.

Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c