Commit 6042e856 authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher
Browse files

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: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5c583018
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
}

/**