drm/amd/display: return correct dc_status for dcn10_validate_global
authorSu Sung Chung <Su.Chung@amd.com>
Thu, 21 Mar 2019 19:40:44 +0000 (15:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:53:28 +0000 (13:53 -0500)
commitb4423fd9cf3e5ba0e36c42cee12db167dae6cf5e
treee21d9438c922e44ba59b67862dc8317d789e59a0
parenta1e07ba89d49581471d64c48152dbe03b42bd025
drm/amd/display: return correct dc_status for dcn10_validate_global

[Why]
Before it was returning false in the case of failure even though return type should be enum dc_status

[How]
Return DC_FAIL_UNSUPPORTED_1 instead

Signed-off-by: Su Sung Chung <Su.Chung@amd.com>
Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
drivers/gpu/drm/amd/display/dc/inc/core_status.h