Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4016260b authored by Rob Clark's avatar Rob Clark
Browse files

drm/msm: fix bug after preclose removal



commit 53190c71
Author:     Daniel Vetter <daniel.vetter@ffwll.ch>
AuthorDate: Mon Jan 25 22:16:49 2016 +0100
Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
CommitDate: Mon Feb 8 09:55:50 2016 +0100

    drm/msm: Nuke preclose hooks

Left around the unused (and null) preclose fxn ptr, and things
predictibly explode when you try to call that.

Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 568d7c76
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -467,9 +467,6 @@ static void msm_preclose(struct drm_device *dev, struct drm_file *file)
	struct msm_file_private *ctx = file->driver_priv;
	struct msm_kms *kms = priv->kms;

	if (kms)
		kms->funcs->preclose(kms, file);

	mutex_lock(&dev->struct_mutex);
	if (ctx == priv->lastctx)
		priv->lastctx = NULL;
+0 −1
Original line number Diff line number Diff line
@@ -55,7 +55,6 @@ struct msm_kms_funcs {
			struct drm_encoder *slave_encoder,
			bool is_cmd_mode);
	/* cleanup: */
	void (*preclose)(struct msm_kms *kms, struct drm_file *file);
	void (*destroy)(struct msm_kms *kms);
};