drm/core: clean up references to drm_dev_unref()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
---
This patch is on top of branch drm-misc-next of drm-misc tree. I hope that's the right one.
drivers/gpu/drm/drm_pci.c | 2 +- drivers/gpu/drm/drm_prime.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_pci.c +1 -1
@@ -274,7 +274,7 @@ int drm_get_pci_dev(struct pci_dev *pdev, const struct pci_device_id *ent,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);
drivers/gpu/drm/drm_prime.c +1 -1
@@ -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);
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Daniel Vetter
AppliedQuoted 8 lines · Aishwarya Pant
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 withdrm_dev_put().Signed-off-by Aishwarya Pant <[email protected]>---
This patch is on top of branch drm-misc-next of drm-misc tree. I hope that's the right one.
Yup.
Applied, thanks for your patch.
-Daniel
Quoted 40 lines
drivers/gpu/drm/drm_pci.c | 2 +- drivers/gpu/drm/drm_prime.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/drm_pci.c +1
-1@@ -274,7 +274,7 @@ int drm_get_pci_dev(struct pci_dev *pdev, const struct pci_device_id *ent,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);drivers/gpu/drm/drm_prime.c +1
-1@@ -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);Signature · 8 lines
2.7.4 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170926170400.GA7671%40aishwarya. For more options, visit https://groups.google.com/d/optout.
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch