drm/amd/powerplay: refine phm_register_thermal_interrupt interface

currently, not all asics implement this callback function
so not return error to avoid powerplay initialize failed
in those asices

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Rex Zhu 2017-09-21 10:34:48 +08:00 committed by Alex Deucher
parent 5c58301856
commit 6042e8560e

View File

@ -210,10 +210,10 @@ int phm_register_thermal_interrupt(struct pp_hwmgr *hwmgr, const void *info)
{
PHM_FUNC_CHECK(hwmgr);
if (hwmgr->hwmgr_func->register_internal_thermal_interrupt == NULL)
return -EINVAL;
if (hwmgr->hwmgr_func->register_internal_thermal_interrupt != NULL)
return hwmgr->hwmgr_func->register_internal_thermal_interrupt(hwmgr, info);
return 0;
}
/**