]> Pileus Git - ~andy/linux/blobdiff - drivers/gpu/drm/ast/ast_mode.c
Merge remote-tracking branch 'spi/topic/bfin' into spi-next
[~andy/linux] / drivers / gpu / drm / ast / ast_mode.c
index a712cafcfa1dfde6f76e5c94a77307b7c1f1041a..7fc9f7272b56e7e9ebe846b650e9e2f18f28cc5f 100644 (file)
@@ -28,9 +28,9 @@
  * Authors: Dave Airlie <airlied@redhat.com>
  */
 #include <linux/export.h>
-#include "drmP.h"
-#include "drm_crtc.h"
-#include "drm_crtc_helper.h"
+#include <drm/drmP.h>
+#include <drm/drm_crtc.h>
+#include <drm/drm_crtc_helper.h>
 #include "ast_drv.h"
 
 #include "ast_tables.h"
@@ -582,7 +582,6 @@ static const struct drm_crtc_helper_funcs ast_crtc_helper_funcs = {
        .mode_set_base = ast_crtc_mode_set_base,
        .disable = ast_crtc_disable,
        .load_lut = ast_crtc_load_lut,
-       .disable = ast_crtc_disable,
        .prepare = ast_crtc_prepare,
        .commit = ast_crtc_commit,
 
@@ -737,6 +736,7 @@ static int ast_get_modes(struct drm_connector *connector)
        if (edid) {
                drm_mode_connector_update_edid_property(&ast_connector->base, edid);
                ret = drm_add_edid_modes(connector, edid);
+               kfree(edid);
                return ret;
        } else
                drm_mode_connector_update_edid_property(&ast_connector->base, NULL);