Skip to contentSkip to conversation

drm/sti: Replace drm_dev_unref with drm_dev_put

PATCH In review Thomas Zimmermann 2 participants 2 messages Jul 12, 2018 – Jul 13, 2018

Subsystems (3)
lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

PATCH 1/1 drm/sti: Replace drm_dev_unref with drm_dev_put

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.

---
 drivers/gpu/drm/sti/sti_drv.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/sti/sti_drv.c +4 -4
index 90c46b49c931..832fc43960ee 100644
@@ -224,7 +224,7 @@ static int sti_bind(struct device *dev)
 
 	ret = sti_init(ddev);
 	if (ret)
-		goto err_drm_dev_unref;
+		goto err_drm_dev_put;
 
 	ret = component_bind_all(ddev->dev, ddev);
 	if (ret)
@@ -248,8 +248,8 @@ static int sti_bind(struct device *dev)
 	drm_mode_config_cleanup(ddev);
 err_cleanup:
 	sti_cleanup(ddev);
-err_drm_dev_unref:
-	drm_dev_unref(ddev);
+err_drm_dev_put:
+	drm_dev_put(ddev);
 	return ret;
 }
 
@@ -259,7 +259,7 @@ static void sti_unbind(struct device *dev)
 
 	drm_dev_unregister(ddev);
 	sti_cleanup(ddev);
-	drm_dev_unref(ddev);
+	drm_dev_put(ddev);
 }
 
 static const struct component_master_ops sti_ops = {
Signature · 6 lines
2.18.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

2018-07-12 17:26 GMT+02:00 Thomas Zimmermann <[email protected]>:

Quoted 6 lines

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.

Applied on drm-misc-next.
Thanks,
Benjamin

Quoted 38 lines
---
 drivers/gpu/drm/sti/sti_drv.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/sti/sti_drv.c +4 -5
index 90c46b49c931..832fc43960ee 100644
@@ -224,7 +224,7 @@ static int sti_bind(struct device *dev)
 
        ret = sti_init(ddev);
        if (ret)
-               goto err_drm_dev_unref;
+               goto err_drm_dev_put;
 
        ret = component_bind_all(ddev->dev, ddev);
        if (ret)
@@ -248,8 +248,8 @@ static int sti_bind(struct device *dev)
        drm_mode_config_cleanup(ddev);
 err_cleanup:
        sti_cleanup(ddev);
-err_drm_dev_unref:
-       drm_dev_unref(ddev);
+err_drm_dev_put:
+       drm_dev_put(ddev);
        return ret;
 }
 
@@ -259,7 +259,7 @@ static void sti_unbind(struct device *dev)
 
        drm_dev_unregister(ddev);
        sti_cleanup(ddev);
-       drm_dev_unref(ddev);
+       drm_dev_put(ddev);
 }
 
 static const struct component_master_ops sti_ops = {
--
Quoted 2 lines

2.18.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel