Skip to contentSkip to conversation

drm/arc: Replace drm_dev_unref with drm_dev_put

PATCH RESEND Superseded Thomas Zimmermann 2 participants 2 messages Sep 26, 2018 – Sep 27, 2018

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

PATCH RESEND 1/1 drm/arc: 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/arc/arcpgu_drv.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/arc/arcpgu_drv.c +4 -4
index f067de4e1e82..27d426bf7d01 100644
@@ -204,7 +204,7 @@ static int arcpgu_probe(struct platform_device *pdev)
 
 	ret = arcpgu_load(drm);
 	if (ret)
-		goto err_unref;
+		goto err_put;
 
 	ret = drm_dev_register(drm, 0);
 	if (ret)
@@ -215,8 +215,8 @@ static int arcpgu_probe(struct platform_device *pdev)
 err_unload:
 	arcpgu_unload(drm);
 
-err_unref:
-	drm_dev_unref(drm);
+err_put:
+	drm_dev_put(drm);
 
 	return ret;
 }
@@ -227,7 +227,7 @@ static int arcpgu_remove(struct platform_device *pdev)
 
 	drm_dev_unregister(drm);
 	arcpgu_unload(drm);
-	drm_dev_unref(drm);
+	drm_dev_put(drm);
 
 	return 0;
 }

--
2.19.0

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

Acked-by on v1 1/1
#1 lore raw

Hi Thomas,

Quoted 3 lines · Thomas Zimmermann

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.

Thanks for your clean-up efforts!
I'll pick it up to my tree.

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