summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_pci.c
diff options
context:
space:
mode:
authorAishwarya Pant <aishpant@gmail.com>2017-09-26 19:04:00 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-09-27 10:53:12 +0200
commitffeeeed0aee9f36635c8642ff40de863bbb4224a (patch)
treefde66f6b60837bb1c7bd161eddf130f47b6f023d /drivers/gpu/drm/drm_pci.c
parentdrm/doc: Remove todo item about "This is gross" comment (diff)
downloadlinux-ffeeeed0aee9f36635c8642ff40de863bbb4224a.tar.xz
linux-ffeeeed0aee9f36635c8642ff40de863bbb4224a.zip
drm/core: clean up references to drm_dev_unref()
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
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
-rw-r--r--drivers/gpu/drm/drm_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c
index 1235c9877d6f..4db9c515b74f 100644
--- a/drivers/gpu/drm/drm_pci.c
+++ b/drivers/gpu/drm/drm_pci.c
@@ -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);