summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/arm/malidp_drv.c
diff options
context:
space:
mode:
authorSrishti Sharma2017-09-29 12:00:40 +0200
committerLiviu Dudau2017-11-24 16:42:35 +0100
commit0970d7a2f5b0dcdd520c7655210d677f6e9a878e (patch)
tree4c9640ecec00d9f1cb0a256d30ec66d9c244ae9f /drivers/gpu/drm/arm/malidp_drv.c
parentdrm: mali-dp: switch to drm_*_get(), drm_*_put() helpers (diff)
downloadkernel-qcow2-linux-0970d7a2f5b0dcdd520c7655210d677f6e9a878e.tar.gz
kernel-qcow2-linux-0970d7a2f5b0dcdd520c7655210d677f6e9a878e.tar.xz
kernel-qcow2-linux-0970d7a2f5b0dcdd520c7655210d677f6e9a878e.zip
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: Srishti Sharma <srishtishar@gmail.com> [split patch into hdlcd and mali-dp versions] Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Diffstat (limited to 'drivers/gpu/drm/arm/malidp_drv.c')
-rw-r--r--drivers/gpu/drm/arm/malidp_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c
index b8944666a18f..a2b698c983b4 100644
--- a/drivers/gpu/drm/arm/malidp_drv.c
+++ b/drivers/gpu/drm/arm/malidp_drv.c
@@ -671,7 +671,7 @@ query_hw_fail:
malidp_runtime_pm_suspend(dev);
drm->dev_private = NULL;
dev_set_drvdata(dev, NULL);
- drm_dev_unref(drm);
+ drm_dev_put(drm);
alloc_fail:
of_reserved_mem_device_release(dev);
@@ -704,7 +704,7 @@ static void malidp_unbind(struct device *dev)
malidp_runtime_pm_suspend(dev);
drm->dev_private = NULL;
dev_set_drvdata(dev, NULL);
- drm_dev_unref(drm);
+ drm_dev_put(drm);
of_reserved_mem_device_release(dev);
}