drm/amd/display: Only update dchub if hubbub is available

Signed-off-by: Yue Hin Lau <Yuehin.Lau@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Yue Hin Lau 2017-10-26 16:30:44 -04:00 committed by Alex Deucher
parent bc71a20db2
commit 8a4cf458a8
1 changed files with 2 additions and 1 deletions

View File

@ -2509,7 +2509,8 @@ void dcn10_update_pending_status(struct pipe_ctx *pipe_ctx)
void dcn10_update_dchub(struct dce_hwseq *hws, struct dchub_init_data *dh_data)
{
hubbub1_update_dchub(hws->ctx->dc->res_pool->hubbub, dh_data);
if (hws->ctx->dc->res_pool->hubbub != NULL)
hubbub1_update_dchub(hws->ctx->dc->res_pool->hubbub, dh_data);
}
static const struct hw_sequencer_funcs dcn10_funcs = {