drm/vgem: Replace drm_dev_unref with drm_dev_put
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 16 Jul 2018 07:46:24 +0000 (09:46 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 9 Aug 2018 12:46:24 +0000 (14:46 +0200)
This patch unifies the naming of DRM functions for reference counting
of struct drm_device. The resulting code is more aligned with the rest
of the Linux kernel interfaces.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180716074624.7931-1-tzimmermann@suse.de
drivers/gpu/drm/vgem/vgem_drv.c

index 0e5620f76ee09b43d3fbc2b03ad20e3797bd1d2a..ec6af8b920daa222917f9514cd3dbe9c2b9370e9 100644 (file)
@@ -504,7 +504,7 @@ out_free:
 static void __exit vgem_exit(void)
 {
        drm_dev_unregister(&vgem_device->drm);
-       drm_dev_unref(&vgem_device->drm);
+       drm_dev_put(&vgem_device->drm);
 }
 
 module_init(vgem_init);