aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast/ast_mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/ast/ast_mode.c')
-rw-r--r--drivers/gpu/drm/ast/ast_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index a6982b86df9b..7fc9f7272b56 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -582,7 +582,6 @@ static const struct drm_crtc_helper_funcs ast_crtc_helper_funcs = {
582 .mode_set_base = ast_crtc_mode_set_base, 582 .mode_set_base = ast_crtc_mode_set_base,
583 .disable = ast_crtc_disable, 583 .disable = ast_crtc_disable,
584 .load_lut = ast_crtc_load_lut, 584 .load_lut = ast_crtc_load_lut,
585 .disable = ast_crtc_disable,
586 .prepare = ast_crtc_prepare, 585 .prepare = ast_crtc_prepare,
587 .commit = ast_crtc_commit, 586 .commit = ast_crtc_commit,
588 587
@@ -737,6 +736,7 @@ static int ast_get_modes(struct drm_connector *connector)
737 if (edid) { 736 if (edid) {
738 drm_mode_connector_update_edid_property(&ast_connector->base, edid); 737 drm_mode_connector_update_edid_property(&ast_connector->base, edid);
739 ret = drm_add_edid_modes(connector, edid); 738 ret = drm_add_edid_modes(connector, edid);
739 kfree(edid);
740 return ret; 740 return ret;
741 } else 741 } else
742 drm_mode_connector_update_edid_property(&ast_connector->base, NULL); 742 drm_mode_connector_update_edid_property(&ast_connector->base, NULL);