From 844e2f5290799e9eac04951371593efcf2ad4660 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 30 Apr 2015 16:38:36 +0200 Subject: [PATCH] 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 [treding@nvidia.com: slightly reword commit message] Signed-off-by: Thierry Reding --- drivers/gpu/drm/panel/panel-simple.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index a6d8a5dda424..482c5680c004 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++; } -- 2.20.1