drm/zte: Use gem_free_object_unlocked
authorDaniel Vetter <[email protected]>
Mon, 17 Jul 2017 15:10:45 +0000 (17:10 +0200)
committerDaniel Vetter <[email protected]>
Tue, 18 Jul 2017 06:40:54 +0000 (08:40 +0200)
CMA helpers are struct_mutex free, and so is the zte itself. And
that's the only valid reason for using gem_free_object.

Signed-off-by: Daniel Vetter <[email protected]>
Cc: Shawn Guo <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Sean Paul <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/zte/zx_drm_drv.c

index fe1aa5315e19be75d5addcd283449ba04f026dcb..c983cdfa1e34c6013dafbea9b20c592ace7e3e64 100644 (file)
@@ -59,7 +59,7 @@ static struct drm_driver zx_drm_driver = {
        .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_PRIME |
                           DRIVER_ATOMIC,
        .lastclose = zx_drm_lastclose,
-       .gem_free_object = drm_gem_cma_free_object,
+       .gem_free_object_unlocked = drm_gem_cma_free_object,
        .gem_vm_ops = &drm_gem_cma_vm_ops,
        .dumb_create = drm_gem_cma_dumb_create,
        .dumb_map_offset = drm_gem_cma_dumb_map_offset,