From: Thomas Zimmermann <tdz@users.sourceforge.net>
To: tomi.valkeinen@ti.com
Cc: Thomas Zimmermann <tdz@users.sourceforge.net>,
dri-devel@lists.freedesktop.org
Subject: [PATCH 3/3] drm/omapdrm: Replace drm_dev_unref with drm_dev_put
Date: Mon, 18 Jun 2018 15:07:27 +0200 [thread overview]
Message-ID: <20180618130727.15740-4-tdz@users.sourceforge.net> (raw)
In-Reply-To: <20180618130727.15740-1-tdz@users.sourceforge.net>
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 <tdz@users.sourceforge.net>
---
drivers/gpu/drm/omapdrm/omap_drv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c
index 926b765dde68..6042f77450a6 100644
--- a/drivers/gpu/drm/omapdrm/omap_drv.c
+++ b/drivers/gpu/drm/omapdrm/omap_drv.c
@@ -601,7 +601,7 @@ static int omapdrm_init(struct omap_drm_private *priv, struct device *dev)
omap_drm_irq_uninstall(ddev);
err_free_drm_dev:
omap_gem_deinit(ddev);
- drm_dev_unref(ddev);
+ drm_dev_put(ddev);
err_destroy_wq:
destroy_workqueue(priv->wq);
omap_disconnect_dssdevs();
@@ -630,7 +630,7 @@ static void omapdrm_cleanup(struct omap_drm_private *priv)
omap_drm_irq_uninstall(ddev);
omap_gem_deinit(ddev);
- drm_dev_unref(ddev);
+ drm_dev_put(ddev);
destroy_workqueue(priv->wq);
--
2.14.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2018-06-18 13:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-18 13:07 [PATCH 0/3] drm/omapdrm: Replace {un/reference} with {put, get} functions Thomas Zimmermann
2018-06-18 13:07 ` [PATCH 1/3] drm/omapdrm: Replace drm_gem_object_{un/reference} with put, get functions Thomas Zimmermann
2018-06-18 13:07 ` [PATCH 2/3] drm/omapdrm: Replace drm_gem_object_unreference_unlocked with put function Thomas Zimmermann
2018-06-18 13:07 ` Thomas Zimmermann [this message]
2018-09-26 9:47 ` [PATCH 0/3] drm/omapdrm: Replace {un/reference} with {put,get} functions Tomi Valkeinen
2018-09-26 10:50 ` Thomas Zimmermann
2018-09-26 11:02 ` Tomi Valkeinen
2018-09-26 11:19 ` Thomas Zimmermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180618130727.15740-4-tdz@users.sourceforge.net \
--to=tdz@users.sourceforge.net \
--cc=dri-devel@lists.freedesktop.org \
--cc=tomi.valkeinen@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.