Skip to content

Commit

Permalink
drm/imx: parallel-display: remove dead code
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
  • Loading branch information
Lothar Waßmann authored and Philipp Zabel committed May 30, 2016
1 parent 4ed094f commit 97a6075
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/gpu/drm/imx/parallel-display.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ struct imx_parallel_display {
void *edid;
int edid_len;
u32 bus_format;
int mode_valid;
struct drm_display_mode mode;
struct drm_panel *panel;
};
Expand Down Expand Up @@ -68,17 +67,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);

Expand Down

0 comments on commit 97a6075

Please sign in to comment.