Skip to content

Commit

Permalink
drm/panel: simple: Remove useless drm_mode_set_name()
Browse files Browse the repository at this point in the history
drm_display_mode_from_videomode() already calls drm_mode_set_name() on
the provided mode.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
[treding@nvidia.com: slightly reword commit message]
Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Boris Brezillon authored and Thierry Reding committed May 12, 2016
1 parent cda5537 commit 844e2f5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/panel/panel-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ static int panel_simple_get_fixed_modes(struct panel_simple *panel)
if (panel->desc->num_modes == 1)
mode->type |= DRM_MODE_TYPE_PREFERRED;

drm_mode_set_name(mode);

drm_mode_probed_add(connector, mode);
num++;
}
Expand Down

0 comments on commit 844e2f5

Please sign in to comment.