aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/gpu/drm-mm.rst2
-rw-r--r--drivers/gpu/drm/drm_gem_cma_helper.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/gpu/drm-mm.rst b/Documentation/gpu/drm-mm.rst
index 9412798645c1..ce115caea06f 100644
--- a/Documentation/gpu/drm-mm.rst
+++ b/Documentation/gpu/drm-mm.rst
@@ -191,7 +191,7 @@ acquired and release by :c:func:`calling drm_gem_object_get()` and
191holding the lock. 191holding the lock.
192 192
193When the last reference to a GEM object is released the GEM core calls 193When the last reference to a GEM object is released the GEM core calls
194the :c:type:`struct drm_driver <drm_driver>` gem_free_object 194the :c:type:`struct drm_driver <drm_driver>` gem_free_object_unlocked
195operation. That operation is mandatory for GEM-enabled drivers and must 195operation. That operation is mandatory for GEM-enabled drivers and must
196free the GEM object and all associated resources. 196free the GEM object and all associated resources.
197 197
diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c b/drivers/gpu/drm/drm_gem_cma_helper.c
index bc28e7575254..275ab872b34f 100644
--- a/drivers/gpu/drm/drm_gem_cma_helper.c
+++ b/drivers/gpu/drm/drm_gem_cma_helper.c
@@ -177,7 +177,7 @@ drm_gem_cma_create_with_handle(struct drm_file *file_priv,
177 * This function frees the backing memory of the CMA GEM object, cleans up the 177 * This function frees the backing memory of the CMA GEM object, cleans up the
178 * GEM object state and frees the memory used to store the object itself. 178 * GEM object state and frees the memory used to store the object itself.
179 * Drivers using the CMA helpers should set this as their 179 * Drivers using the CMA helpers should set this as their
180 * &drm_driver.gem_free_object callback. 180 * &drm_driver.gem_free_object_unlocked callback.
181 */ 181 */
182void drm_gem_cma_free_object(struct drm_gem_object *gem_obj) 182void drm_gem_cma_free_object(struct drm_gem_object *gem_obj)
183{ 183{