summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/mgag200
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2020-05-15 11:51:03 +0200
committerEmil Velikov <emil.l.velikov@gmail.com>2020-05-19 23:31:33 +0200
commitc457b11afff24776e09441cc470fc661f8066ef6 (patch)
tree6566ba5fcfa877d569af2e3c593701d086b5d52e /drivers/gpu/drm/mgag200
parentdrm/mediatek: remove _unlocked suffix in drm_gem_object_put_unlocked (diff)
downloadlinux-c457b11afff24776e09441cc470fc661f8066ef6.tar.xz
linux-c457b11afff24776e09441cc470fc661f8066ef6.zip
drm/mgag200: remove _unlocked suffix in drm_gem_object_put_unlocked
Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem_object_put_unlocked __to=drm_gem_object_put for __file in $(git grep --name-only $__from); do sed -i "s/$__from/$__to/g" $__file; done Cc: Dave Airlie <airlied@redhat.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20200515095118.2743122-24-emil.l.velikov@gmail.com
Diffstat (limited to 'drivers/gpu/drm/mgag200')
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_cursor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_cursor.c b/drivers/gpu/drm/mgag200/mgag200_cursor.c
index aebc9ce43d55..c6932dc8acf2 100644
--- a/drivers/gpu/drm/mgag200/mgag200_cursor.c
+++ b/drivers/gpu/drm/mgag200/mgag200_cursor.c
@@ -286,7 +286,7 @@ int mgag200_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv,
ret = PTR_ERR(src);
dev_err(&dev->pdev->dev,
"failed to map user buffer updates\n");
- goto err_drm_gem_object_put_unlocked;
+ goto err_drm_gem_object_put;
}
ret = mgag200_show_cursor(mdev, src, width, height);
@@ -295,13 +295,13 @@ int mgag200_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv,
/* Now update internal buffer pointers */
drm_gem_vram_vunmap(gbo, src);
- drm_gem_object_put_unlocked(obj);
+ drm_gem_object_put(obj);
return 0;
err_drm_gem_vram_vunmap:
drm_gem_vram_vunmap(gbo, src);
-err_drm_gem_object_put_unlocked:
- drm_gem_object_put_unlocked(obj);
+err_drm_gem_object_put:
+ drm_gem_object_put(obj);
return ret;
}