Skip to content

Commit

Permalink
drm/i915: fix an error code in intel_modeset_all_tiles()
Browse files Browse the repository at this point in the history
There is a cut and paste bug so we return the wrong error code.

Fixes: a603f5b ("drm/i915/dp: Make sure all tiled connectors get added to the state with full modeset")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200107130322.gdk5b6jurifr26c2@kili.mountain
  • Loading branch information
Dan Carpenter authored and Chris Wilson committed Jan 7, 2020
1 parent 62bf546 commit 953cac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/display/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -14568,7 +14568,7 @@ intel_modeset_all_tiles(struct intel_atomic_state *state, int tile_grp_id)
crtc_state = drm_atomic_get_crtc_state(&state->base,
conn_state->crtc);
if (IS_ERR(crtc_state)) {
ret = PTR_ERR(conn_state);
ret = PTR_ERR(crtc_state);
break;
}
crtc_state->mode_changed = true;
Expand Down

0 comments on commit 953cac3

Please sign in to comment.