Commit 97a6075d authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Philipp Zabel

drm/imx: parallel-display: remove dead code

The 'mode_valid' flag is never set in this driver. Remove it and the
code that depends on it.
Signed-off-by: default avatarLothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 4ed094fd
...@@ -35,7 +35,6 @@ struct imx_parallel_display { ...@@ -35,7 +35,6 @@ struct imx_parallel_display {
void *edid; void *edid;
int edid_len; int edid_len;
u32 bus_format; u32 bus_format;
int mode_valid;
struct drm_display_mode mode; struct drm_display_mode mode;
struct drm_panel *panel; struct drm_panel *panel;
}; };
...@@ -68,17 +67,6 @@ static int imx_pd_connector_get_modes(struct drm_connector *connector) ...@@ -68,17 +67,6 @@ static int imx_pd_connector_get_modes(struct drm_connector *connector)
num_modes = drm_add_edid_modes(connector, imxpd->edid); 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) { if (np) {
struct drm_display_mode *mode = drm_mode_create(connector->dev); struct drm_display_mode *mode = drm_mode_create(connector->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment