aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2015-04-30 16:38:36 +0200
committerThierry Reding <treding@nvidia.com>2016-05-12 11:32:14 +0200
commit844e2f5290799e9eac04951371593efcf2ad4660 (patch)
treeb1fe07cc58dfc91cdbfdd8895dc0fef8b43a0e67
parentcda553725c92b9f908f6f69e9bc05de81384d817 (diff)
drm/panel: simple: Remove useless drm_mode_set_name()
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>
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index a6d8a5d..482c568 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -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++;
}