drm/amd/powerplay: set pp_num_states as 0 on error situation
authorEvan Quan <evan.quan@amd.com>
Thu, 28 Dec 2017 06:37:58 +0000 (14:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Jan 2018 20:44:52 +0000 (15:44 -0500)
commit4dbda35ffaa3eb52ecf960b56220644158ddae12
tree151d610a9317bfc1d3977619dd4d9787915ee802
parent40b4667babaf73218e62cd73a17184a7c2d50434
drm/amd/powerplay: set pp_num_states as 0 on error situation

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c