Commit e19baf70 authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov

drm/gma500: 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: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Acked-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200515095118.2743122-20-emil.l.velikov@gmail.com
parent 1138a5f6
...@@ -491,7 +491,7 @@ static int psb_fbdev_destroy(struct drm_device *dev, ...@@ -491,7 +491,7 @@ static int psb_fbdev_destroy(struct drm_device *dev,
drm_framebuffer_cleanup(fb); drm_framebuffer_cleanup(fb);
if (fb->obj[0]) if (fb->obj[0])
drm_gem_object_put_unlocked(fb->obj[0]); drm_gem_object_put(fb->obj[0]);
kfree(fb); kfree(fb);
return 0; return 0;
......
...@@ -82,7 +82,7 @@ int psb_gem_create(struct drm_file *file, struct drm_device *dev, u64 size, ...@@ -82,7 +82,7 @@ int psb_gem_create(struct drm_file *file, struct drm_device *dev, u64 size,
return ret; return ret;
} }
/* We have the initial and handle reference but need only one now */ /* We have the initial and handle reference but need only one now */
drm_gem_object_put_unlocked(&r->gem); drm_gem_object_put(&r->gem);
*handlep = handle; *handlep = handle;
return 0; return 0;
} }
......
...@@ -351,7 +351,7 @@ int gma_crtc_cursor_set(struct drm_crtc *crtc, ...@@ -351,7 +351,7 @@ int gma_crtc_cursor_set(struct drm_crtc *crtc,
gt = container_of(gma_crtc->cursor_obj, gt = container_of(gma_crtc->cursor_obj,
struct gtt_range, gem); struct gtt_range, gem);
psb_gtt_unpin(gt); psb_gtt_unpin(gt);
drm_gem_object_put_unlocked(gma_crtc->cursor_obj); drm_gem_object_put(gma_crtc->cursor_obj);
gma_crtc->cursor_obj = NULL; gma_crtc->cursor_obj = NULL;
} }
return 0; return 0;
...@@ -427,7 +427,7 @@ int gma_crtc_cursor_set(struct drm_crtc *crtc, ...@@ -427,7 +427,7 @@ int gma_crtc_cursor_set(struct drm_crtc *crtc,
if (gma_crtc->cursor_obj) { if (gma_crtc->cursor_obj) {
gt = container_of(gma_crtc->cursor_obj, struct gtt_range, gem); gt = container_of(gma_crtc->cursor_obj, struct gtt_range, gem);
psb_gtt_unpin(gt); psb_gtt_unpin(gt);
drm_gem_object_put_unlocked(gma_crtc->cursor_obj); drm_gem_object_put(gma_crtc->cursor_obj);
} }
gma_crtc->cursor_obj = obj; gma_crtc->cursor_obj = obj;
...@@ -435,7 +435,7 @@ int gma_crtc_cursor_set(struct drm_crtc *crtc, ...@@ -435,7 +435,7 @@ int gma_crtc_cursor_set(struct drm_crtc *crtc,
return ret; return ret;
unref_cursor: unref_cursor:
drm_gem_object_put_unlocked(obj); drm_gem_object_put(obj);
return ret; return ret;
} }
......
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