Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1404458 > unrolled thread

[PATCH 3/3] drm/imx: remove dead code

Started byLothar Waßmann <LW@KARO-electronics.de>
First post2016-05-20 16:00 +0200
Last post2016-05-20 16:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/3] drm/imx: remove dead code Lothar Waßmann <LW@KARO-electronics.de> - 2016-05-20 16:00 +0200

#1404458 — [PATCH 3/3] drm/imx: remove dead code

FromLothar Waßmann <LW@KARO-electronics.de>
Date2016-05-20 16:00 +0200
Subject[PATCH 3/3] drm/imx: remove dead code
Message-ID<rAT86-6ck-29@gated-at.bofh.it>
The 'mode_valid' flag is never set in this driver. Remove it and the
code that depends on it.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
---
 drivers/gpu/drm/imx/parallel-display.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/drivers/gpu/drm/imx/parallel-display.c b/drivers/gpu/drm/imx/parallel-display.c
index 440f34d..e37d0e6 100644
--- a/drivers/gpu/drm/imx/parallel-display.c
+++ b/drivers/gpu/drm/imx/parallel-display.c
@@ -39,7 +39,6 @@ struct imx_parallel_display {
 	int edid_len;
 	u32 bus_format;
 	u32 bus_flags;
-	int mode_valid;
 	struct drm_display_mode mode;
 	struct drm_panel *panel;
 };
@@ -74,17 +73,6 @@ static int imx_pd_connector_get_modes(struct drm_connector *connector)
 		num_modes = drm_add_edid_modes(connector, imxpd->edid);
 	}
 
-	if (imxpd->mode_valid) {
-		struct drm_display_mode *mode = drm_mode_create(connector->dev);
-
-		if (!mode)
-			return -EINVAL;
-		drm_mode_copy(mode, &imxpd->mode);
-		mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED,
-		drm_mode_probed_add(connector, mode);
-		num_modes++;
-	}
-
 	if (np) {
 		struct drm_display_mode *mode = drm_mode_create(connector->dev);
 		struct videomode vm;
-- 
2.1.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web