Commit fda8fa5b authored by Daniel Vetter's avatar Daniel Vetter Committed by Lucas Stach

drm/etnaviv: switch to postclose

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: Lucas Stach <l.stach@pengutronix.de>
Cc: Russell King <linux+etnaviv@armlinux.org.uk>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: etnaviv@lists.freedesktop.org
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Acked-by: default avatarLucas Stach <l.stach@pengutronix.de>
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent b27734c2
...@@ -111,7 +111,7 @@ static int etnaviv_open(struct drm_device *dev, struct drm_file *file) ...@@ -111,7 +111,7 @@ static int etnaviv_open(struct drm_device *dev, struct drm_file *file)
return 0; return 0;
} }
static void etnaviv_preclose(struct drm_device *dev, struct drm_file *file) static void etnaviv_postclose(struct drm_device *dev, struct drm_file *file)
{ {
struct etnaviv_drm_private *priv = dev->dev_private; struct etnaviv_drm_private *priv = dev->dev_private;
struct etnaviv_file_private *ctx = file->driver_priv; struct etnaviv_file_private *ctx = file->driver_priv;
...@@ -488,7 +488,7 @@ static struct drm_driver etnaviv_drm_driver = { ...@@ -488,7 +488,7 @@ static struct drm_driver etnaviv_drm_driver = {
DRIVER_PRIME | DRIVER_PRIME |
DRIVER_RENDER, DRIVER_RENDER,
.open = etnaviv_open, .open = etnaviv_open,
.preclose = etnaviv_preclose, .postclose = etnaviv_postclose,
.gem_free_object_unlocked = etnaviv_gem_free_object, .gem_free_object_unlocked = etnaviv_gem_free_object,
.gem_vm_ops = &vm_ops, .gem_vm_ops = &vm_ops,
.prime_handle_to_fd = drm_gem_prime_handle_to_fd, .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
......
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