drm/nouveau: Replace drm_framebuffer_{un/reference} with put, get functions
authorThomas Zimmermann <tdz@users.sourceforge.net>
Mon, 18 Jun 2018 12:53:10 +0000 (14:53 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 Jul 2018 08:06:29 +0000 (18:06 +1000)
This patch unifies the naming of DRM functions for reference counting
of struct drm_framebuffer. 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: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fbcon.c

index 85c1f10bc2b67651222731f1b9703278328c90e8..844498c4267cb691ecde39083740ca6d08a86390 100644 (file)
@@ -429,7 +429,7 @@ nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev *fbcon)
                nouveau_vma_del(&nouveau_fb->vma);
                nouveau_bo_unmap(nouveau_fb->nvbo);
                nouveau_bo_unpin(nouveau_fb->nvbo);
-               drm_framebuffer_unreference(&nouveau_fb->base);
+               drm_framebuffer_put(&nouveau_fb->base);
        }
 
        return 0;