Commit 0970d7a2 authored by Srishti Sharma's avatar Srishti Sharma Committed by Liviu Dudau

drm/arm: Replace instances of drm_dev_unref with drm_dev_put.

Replace drm_dev_unref with drm_dev_put as it is more consistent
with kernel coding style. Done using the following semantic
patch by coccinelle.

@r@
expression e;
@@

-drm_dev_unref();
+drm_dev_put();
Signed-off-by: default avatarSrishti Sharma <srishtishar@gmail.com>
[split patch into hdlcd and mali-dp versions]
Signed-off-by: default avatarLiviu Dudau <liviu.dudau@arm.com>
parent c2cc215c
...@@ -671,7 +671,7 @@ static int malidp_bind(struct device *dev) ...@@ -671,7 +671,7 @@ static int malidp_bind(struct device *dev)
malidp_runtime_pm_suspend(dev); malidp_runtime_pm_suspend(dev);
drm->dev_private = NULL; drm->dev_private = NULL;
dev_set_drvdata(dev, NULL); dev_set_drvdata(dev, NULL);
drm_dev_unref(drm); drm_dev_put(drm);
alloc_fail: alloc_fail:
of_reserved_mem_device_release(dev); of_reserved_mem_device_release(dev);
...@@ -704,7 +704,7 @@ static void malidp_unbind(struct device *dev) ...@@ -704,7 +704,7 @@ static void malidp_unbind(struct device *dev)
malidp_runtime_pm_suspend(dev); malidp_runtime_pm_suspend(dev);
drm->dev_private = NULL; drm->dev_private = NULL;
dev_set_drvdata(dev, NULL); dev_set_drvdata(dev, NULL);
drm_dev_unref(drm); drm_dev_put(drm);
of_reserved_mem_device_release(dev); of_reserved_mem_device_release(dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment