drm/amd/powerplay: don't succeed in getters if fan is missing
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 29 Oct 2016 20:32:44 +0000 (23:32 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 31 Oct 2016 16:33:31 +0000 (12:33 -0400)
commit91efdb2718e0c5ff014f0cf98cac99f088a9a4d2
tree86a483405d1d3c14c064a6f5d55fb696f9183371
parenteef2b41122425dbddd16d70371bd000f601161d6
drm/amd/powerplay: don't succeed in getters if fan is missing

Otherwise callers end up using uninitialized data.

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c