From: Boris Brezillon Date: Thu, 30 Apr 2015 14:38:36 +0000 (+0200) Subject: drm/panel: simple: Remove useless drm_mode_set_name() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=844e2f5290799e9eac04951371593efcf2ad4660;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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++; }