drm/omap: Replace drm_gem_object_unreference_unlocked with put function
authorThomas Zimmermann <tdz@users.sourceforge.net>
Mon, 18 Jun 2018 13:07:26 +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_drv.c
drivers/gpu/drm/omapdrm/omap_fb.c
drivers/gpu/drm/omapdrm/omap_fbdev.c
drivers/gpu/drm/omapdrm/omap_gem.c

index 5f98506ac2c5d976899d9704d322842ee583289a..f14d02ca968c40a546b50c7794d5e1cb271d6031 100644 (file)
@@ -439,7 +439,7 @@ static int ioctl_gem_info(struct drm_device *dev, void *data,
        args->size = omap_gem_mmap_size(obj);
        args->offset = omap_gem_mmap_offset(obj);
 
-       drm_gem_object_unreference_unlocked(obj);
+       drm_gem_object_put_unlocked(obj);
 
        return ret;
 }
index 9f1e3d8f8488c823cc9914e49559adae88613017..4d264fd554d8f7d80ba63011b9250b562db90253 100644 (file)
@@ -319,7 +319,7 @@ struct drm_framebuffer *omap_framebuffer_create(struct drm_device *dev,
 
 error:
        while (--i >= 0)
-               drm_gem_object_unreference_unlocked(bos[i]);
+               drm_gem_object_put_unlocked(bos[i]);
 
        return fb;
 }
index b445309b014313a77d84efd179743dadaa2721ac..aee99194499f1675be7e160b96241f1f62dbbcd1 100644 (file)
@@ -150,7 +150,7 @@ static int omap_fbdev_create(struct drm_fb_helper *helper,
                /* note: if fb creation failed, we can't rely on fb destroy
                 * to unref the bo:
                 */
-               drm_gem_object_unreference_unlocked(fbdev->bo);
+               drm_gem_object_put_unlocked(fbdev->bo);
                ret = PTR_ERR(fb);
                goto fail;
        }
index 4ba5d035c5909eed0f05b978324186e7ba1b46c0..8dcaf9f4aa75b9467105f12b33f50ba7b50980c3 100644 (file)
@@ -638,7 +638,7 @@ int omap_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev,
 
        *offset = omap_gem_mmap_offset(obj);
 
-       drm_gem_object_unreference_unlocked(obj);
+       drm_gem_object_put_unlocked(obj);
 
 fail:
        return ret;
@@ -1312,7 +1312,7 @@ int omap_gem_new_handle(struct drm_device *dev, struct drm_file *file,
        }
 
        /* drop reference from allocate - handle holds it now */
-       drm_gem_object_unreference_unlocked(obj);
+       drm_gem_object_put_unlocked(obj);
 
        return 0;
 }