drm/omap: Replace drm_gem_object_{un/reference} with put,get functions
authorThomas Zimmermann <tdz@users.sourceforge.net>
Mon, 18 Jun 2018 13:07:25 +0000 (15:07 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 2 Oct 2018 06:36:56 +0000 (09:36 +0300)
This patch unifies the naming of DRM functions for reference counting
of struct drm_gem_object. The resulting code is more aligned with the
rest of the Linux kernel interfaces.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c

index ec04a69ade46bde5e4175740ecd6dccaca61ee6f..0f8b597ccd106e9c96d0514a87d2099e50ce05b5 100644 (file)
@@ -168,7 +168,7 @@ struct drm_gem_object *omap_gem_prime_import(struct drm_device *dev,
                         * Importing dmabuf exported from out own gem increases
                         * refcount on gem itself instead of f_count of dmabuf.
                         */
-                       drm_gem_object_reference(obj);
+                       drm_gem_object_get(obj);
                        return obj;
                }
        }