Skip to contentSkip to conversation

drm/stm: Replace drm_dev_unref with drm_dev_put

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

Subsystems (4)
lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

PATCH 1/1 drm/stm: 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/stm/drv.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/stm/drv.c +5 -5
index 8698e08313e1..f2021b23554d 100644
@@ -148,16 +148,16 @@ static int stm_drm_platform_probe(struct platform_device *pdev)
 
 	ret = drv_load(ddev);
 	if (ret)
-		goto err_unref;
+		goto err_put;
 
 	ret = drm_dev_register(ddev, 0);
 	if (ret)
-		goto err_unref;
+		goto err_put;
 
 	return 0;
 
-err_unref:
-	drm_dev_unref(ddev);
+err_put:
+	drm_dev_put(ddev);
 
 	return ret;
 }
@@ -170,7 +170,7 @@ static int stm_drm_platform_remove(struct platform_device *pdev)
 
 	drm_dev_unregister(ddev);
 	drv_unload(ddev);
-	drm_dev_unref(ddev);
+	drm_dev_put(ddev);
 
 	return 0;
 }
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-13 10:06 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 39 lines
---
 drivers/gpu/drm/stm/drv.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/stm/drv.c +5 -6
index 8698e08313e1..f2021b23554d 100644
@@ -148,16 +148,16 @@ static int stm_drm_platform_probe(struct platform_device *pdev)
 
        ret = drv_load(ddev);
        if (ret)
-               goto err_unref;
+               goto err_put;
 
        ret = drm_dev_register(ddev, 0);
        if (ret)
-               goto err_unref;
+               goto err_put;
 
        return 0;
 
-err_unref:
-       drm_dev_unref(ddev);
+err_put:
+       drm_dev_put(ddev);
 
        return ret;
 }
@@ -170,7 +170,7 @@ static int stm_drm_platform_remove(struct platform_device *pdev)
 
        drm_dev_unregister(ddev);
        drv_unload(ddev);
-       drm_dev_unref(ddev);
+       drm_dev_put(ddev);
 
        return 0;
 }
--
Quoted 2 lines

2.18.0

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