]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
drm/amd/display: add dpms state to DC follow up
authorHersen Wu <hersenxs.wu@amd.com>
Tue, 3 Oct 2017 20:47:02 +0000 (16:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:47:59 +0000 (16:47 -0400)
Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 92fab09843e49a5a2e2b457cec85745bab684179..4cdb855ef8558d8cac91fe0a1334eb59843279c7 100644 (file)
@@ -332,7 +332,7 @@ static void set_dither_option(struct dc_stream_state *stream,
 {
        struct bit_depth_reduction_params params;
        struct dc_link *link = stream->status.link;
-       struct pipe_ctx *pipes;
+       struct pipe_ctx *pipes = NULL;
        int i;
 
        for (i = 0; i < MAX_PIPES; i++) {
@@ -344,7 +344,7 @@ static void set_dither_option(struct dc_stream_state *stream,
        }
 
        memset(&params, 0, sizeof(params));
-       if (!stream)
+       if (!pipes)
                return;
        if (option > DITHER_OPTION_MAX)
                return;