drm/panel: simple: Remove useless drm_mode_set_name()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 30 Apr 2015 14:38:36 +0000 (16:38 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 12 May 2016 09:32:14 +0000 (11:32 +0200)
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>
drivers/gpu/drm/panel/panel-simple.c

index a6d8a5dda4243ede3b1199fc32753de0a188c36f..482c5680c004e794acdb9f5a0e5e3a492d9d3a89 100644 (file)
@@ -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++;
        }