drm/tinydrm: Use gem_free_object_unlocked
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Mar 2018 10:51:28 +0000 (11:51 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Mar 2018 08:19:42 +0000 (10:19 +0200)
tinydrm doesn't use dev->struct_mutex and therefore has no need to use
gem_free_object.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: "Noralf Trønnes" <noralf@tronnes.org>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180322105133.11211-2-daniel.vetter@ffwll.ch
drivers/gpu/drm/tinydrm/core/tinydrm-core.c
include/drm/tinydrm/tinydrm.h

index 4c6616278c48b3ee2db8cedde3744740549be2c7..24a33bf862fa161203893f429a09a089490b8e9f 100644 (file)
@@ -91,7 +91,7 @@ EXPORT_SYMBOL(tinydrm_gem_cma_prime_import_sg_table);
  * GEM object state and frees the memory used to store the object itself using
  * drm_gem_cma_free_object(). It also handles PRIME buffers which has the kernel
  * virtual address set by tinydrm_gem_cma_prime_import_sg_table(). Drivers
- * can use this as their &drm_driver->gem_free_object callback.
+ * can use this as their &drm_driver->gem_free_object_unlocked callback.
  */
 void tinydrm_gem_cma_free_object(struct drm_gem_object *gem_obj)
 {
index 07a9a11fe19dcb66e863ea8155b51589d7c8ed07..77a93ec577fdf944bd3cdcdd30a846ef495f992a 100644 (file)
@@ -41,7 +41,7 @@ pipe_to_tinydrm(struct drm_simple_display_pipe *pipe)
  * the &drm_driver structure.
  */
 #define TINYDRM_GEM_DRIVER_OPS \
-       .gem_free_object        = tinydrm_gem_cma_free_object, \
+       .gem_free_object_unlocked = tinydrm_gem_cma_free_object, \
        .gem_print_info         = drm_gem_cma_print_info, \
        .gem_vm_ops             = &drm_gem_cma_vm_ops, \
        .prime_handle_to_fd     = drm_gem_prime_handle_to_fd, \