drm/amd/powerplay: fix the incorrect return value
authorHuang Rui <ray.huang@amd.com>
Tue, 12 Jul 2016 06:31:23 +0000 (14:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jul 2016 16:33:52 +0000 (12:33 -0400)
commitbec5f70dad45f7ad63f97aa0988821532ebeade7
tree54b4eb672d50af85c535babd81283efc216d6c74
parente68d46484ff453c5aaf215da07f57a2cc29967f9
drm/amd/powerplay: fix the incorrect return value

The return value 0 (false) means fail to find GPIO in
atomctrl_get_pp_assign_pin. "-1" returns true as bool actually.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c