drm/amd/display: implement pipe type definition and adding accessors
[sfrench/cifs-2.6.git] / drivers / gpu / drm / amd / display / dc / dce100 / dce100_resource.c
index 42e9b6a529f6f881b3107b419eaf9fa00e89c30e..899b25b0bad8f6efaa5ac3b80beb6883e6662be1 100644 (file)
@@ -824,7 +824,7 @@ static enum dc_status build_mapped_resource(
                struct dc_state *context,
                struct dc_stream_state *stream)
 {
-       struct pipe_ctx *pipe_ctx = resource_get_head_pipe_for_stream(&context->res_ctx, stream);
+       struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
 
        if (!pipe_ctx)
                return DC_ERROR_UNEXPECTED;