* [PATCH] drm/core: clean up references to drm_dev_unref()
@ 2017-09-26 17:04 Aishwarya Pant
2017-09-27 8:53 ` [Outreachy kernel] " Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: Aishwarya Pant @ 2017-09-26 17:04 UTC (permalink / raw)
To: Daniel Vetter, Jani Nikula, Sean Paul, David Airlie, dri-devel
Cc: outreachy-kernel
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>
---
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(-)
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c
index 1235c98..4db9c51 100644
--- a/drivers/gpu/drm/drm_pci.c
+++ b/drivers/gpu/drm/drm_pci.c
@@ -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);
diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c
index 782b95e..8de93a2 100644
--- a/drivers/gpu/drm/drm_prime.c
+++ b/drivers/gpu/drm/drm_prime.c
@@ -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);
--
2.7.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Outreachy kernel] [PATCH] drm/core: clean up references to drm_dev_unref()
2017-09-26 17:04 [PATCH] drm/core: clean up references to drm_dev_unref() Aishwarya Pant
@ 2017-09-27 8:53 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2017-09-27 8:53 UTC (permalink / raw)
To: Aishwarya Pant; +Cc: dri-devel, outreachy-kernel, Daniel Vetter
On Tue, Sep 26, 2017 at 10:34:00PM +0530, Aishwarya Pant wrote:
> 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>
> ---
> 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
>
> drivers/gpu/drm/drm_pci.c | 2 +-
> drivers/gpu/drm/drm_prime.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c
> index 1235c98..4db9c51 100644
> --- a/drivers/gpu/drm/drm_pci.c
> +++ b/drivers/gpu/drm/drm_pci.c
> @@ -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);
> diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c
> index 782b95e..8de93a2 100644
> --- a/drivers/gpu/drm/drm_prime.c
> +++ b/drivers/gpu/drm/drm_prime.c
> @@ -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);
>
> --
> 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 outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> 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.
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-27 8:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-26 17:04 [PATCH] drm/core: clean up references to drm_dev_unref() Aishwarya Pant
2017-09-27 8:53 ` [Outreachy kernel] " Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox