drm/core: clean up references to drm_dev_unref()
authorAishwarya Pant <aishpant@gmail.com>
Tue, 26 Sep 2017 17:04:00 +0000 (22:34 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 27 Sep 2017 08:53:12 +0000 (10:53 +0200)
This is a continuation of a previous commit ("drm: introduce drm_dev_{get/put}
functions") to replace all references to drm_dev_unref() in drm core files with
drm_dev_put().

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20170926170400.GA7671@aishwarya
drivers/gpu/drm/drm_pci.c
drivers/gpu/drm/drm_prime.c

index 1235c9877d6f1cebb50cf5c478c2f086d9da42a0..4db9c515b74f7713f3ffad8b22ca2d9f57cd8222 100644 (file)
@@ -274,7 +274,7 @@ err_agp:
        drm_pci_agp_destroy(dev);
        pci_disable_device(pdev);
 err_free:
-       drm_dev_unref(dev);
+       drm_dev_put(dev);
        return ret;
 }
 EXPORT_SYMBOL(drm_get_pci_dev);
index 782b95e72405b0e9c148ba628b4ae8724293197c..8de93a226c244aa0d7fff7a77c889864c7f3a205 100644 (file)
@@ -342,7 +342,7 @@ void drm_gem_dmabuf_release(struct dma_buf *dma_buf)
        /* drop the reference on the export fd holds */
        drm_gem_object_put_unlocked(obj);
 
-       drm_dev_unref(dev);
+       drm_dev_put(dev);
 }
 EXPORT_SYMBOL(drm_gem_dmabuf_release);