summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/arm
diff options
context:
space:
mode:
authorCihangir Akturk2017-08-11 14:32:48 +0200
committerLiviu Dudau2017-11-24 16:41:21 +0100
commitc2cc215cde5b3fd4102c9595df66c6e4ff237be4 (patch)
treebf7b6ba0aec5f4e54ac00ceccba079102ad4b8ba /drivers/gpu/drm/arm
parentMerge tag 'drm-misc-fixes-2017-11-20' of git://anongit.freedesktop.org/drm/dr... (diff)
downloadkernel-qcow2-linux-c2cc215cde5b3fd4102c9595df66c6e4ff237be4.tar.gz
kernel-qcow2-linux-c2cc215cde5b3fd4102c9595df66c6e4ff237be4.tar.xz
kernel-qcow2-linux-c2cc215cde5b3fd4102c9595df66c6e4ff237be4.zip
drm: mali-dp: switch to drm_*_get(), drm_*_put() helpers
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions to use the new APIs. Generated by: scripts/coccinelle/api/drm-get-put.cocci Signed-off-by: Cihangir Akturk <cakturk@gmail.com> Acked-by: Liviu Dudau <Liviu.Dudau@arm.com> Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Diffstat (limited to 'drivers/gpu/drm/arm')
-rw-r--r--drivers/gpu/drm/arm/malidp_planes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c
index 94e7e3fa3408..f12f8eb126be 100644
--- a/drivers/gpu/drm/arm/malidp_planes.c
+++ b/drivers/gpu/drm/arm/malidp_planes.c
@@ -57,7 +57,7 @@ static void malidp_de_plane_destroy(struct drm_plane *plane)
struct malidp_plane *mp = to_malidp_plane(plane);
if (mp->base.fb)
- drm_framebuffer_unreference(mp->base.fb);
+ drm_framebuffer_put(mp->base.fb);
drm_plane_helper_disable(plane);
drm_plane_cleanup(plane);