Skip to content

Commit a7d2a87

Browse files
committed
drm/tinydrm: Use gem_free_object_unlocked
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
1 parent 8017e42 commit a7d2a87

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/gpu/drm/tinydrm/core/tinydrm-core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ EXPORT_SYMBOL(tinydrm_gem_cma_prime_import_sg_table);
9191
* GEM object state and frees the memory used to store the object itself using
9292
* drm_gem_cma_free_object(). It also handles PRIME buffers which has the kernel
9393
* virtual address set by tinydrm_gem_cma_prime_import_sg_table(). Drivers
94-
* can use this as their &drm_driver->gem_free_object callback.
94+
* can use this as their &drm_driver->gem_free_object_unlocked callback.
9595
*/
9696
void tinydrm_gem_cma_free_object(struct drm_gem_object *gem_obj)
9797
{

‎include/drm/tinydrm/tinydrm.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pipe_to_tinydrm(struct drm_simple_display_pipe *pipe)
4141
* the &drm_driver structure.
4242
*/
4343
#define TINYDRM_GEM_DRIVER_OPS \
44-
.gem_free_object = tinydrm_gem_cma_free_object, \
44+
.gem_free_object_unlocked = tinydrm_gem_cma_free_object, \
4545
.gem_print_info = drm_gem_cma_print_info, \
4646
.gem_vm_ops = &drm_gem_cma_vm_ops, \
4747
.prime_handle_to_fd = drm_gem_prime_handle_to_fd, \

0 commit comments

Comments
 (0)