Commit 67c3bd40 authored by Reza Amini's avatar Reza Amini Committed by Alex Deucher

drm/amd/display: handle unsupported sink types

Signed-off-by: default avatarReza Amini <reza.amini@amd.com>
Reviewed-by: default avatarWesley Chalmers <Wesley.Chalmers@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ab8812a3
...@@ -53,6 +53,10 @@ static bool construct(struct sink *sink, const struct dc_sink_init_data *init_pa ...@@ -53,6 +53,10 @@ static bool construct(struct sink *sink, const struct dc_sink_init_data *init_pa
struct core_link *core_link = DC_LINK_TO_LINK(init_params->link); struct core_link *core_link = DC_LINK_TO_LINK(init_params->link);
if (!core_link) {
return false;
}
sink->protected.public.sink_signal = init_params->sink_signal; sink->protected.public.sink_signal = init_params->sink_signal;
sink->protected.link = core_link; sink->protected.link = core_link;
sink->protected.ctx = core_link->ctx; sink->protected.ctx = core_link->ctx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment