Skip to content

Commit

Permalink
drm/tegra: switch to postclose
Browse files Browse the repository at this point in the history
I didn't spot anything that would require ordering here (well not
anywhere else either), and I'm trying to unify at least modern drivers
on one close hook.

Cc: Thierry Reding <[email protected]>
Cc: [email protected]
Reviewed-by: Sean Paul <[email protected]>
Reviewed-by: Liviu Dudau <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
danvet committed May 9, 2017
1 parent f0e73ff commit bda0ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/tegra/drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ static const struct file_operations tegra_drm_fops = {
.llseek = noop_llseek,
};

static void tegra_drm_preclose(struct drm_device *drm, struct drm_file *file)
static void tegra_drm_postclose(struct drm_device *drm, struct drm_file *file)
{
struct tegra_drm_file *fpriv = file->driver_priv;
struct tegra_drm_context *context, *tmp;
Expand Down Expand Up @@ -868,7 +868,7 @@ static struct drm_driver tegra_drm_driver = {
.load = tegra_drm_load,
.unload = tegra_drm_unload,
.open = tegra_drm_open,
.preclose = tegra_drm_preclose,
.postclose = tegra_drm_postclose,
.lastclose = tegra_drm_lastclose,

#if defined(CONFIG_DEBUG_FS)
Expand Down

0 comments on commit bda0ecc

Please sign in to comment.