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: Emil Velikov <emil.velikov@collabora.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20200515095118.2743122-20-emil.l.velikov@gmail.com
This commit is contained in:
Родитель
1138a5f63a
Коммит
e19baf704a
|
@ -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,
|
||||||
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,
|
||||||
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,
|
||||||
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 @@ unlock:
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
unref_cursor:
|
unref_cursor:
|
||||||
drm_gem_object_put_unlocked(obj);
|
drm_gem_object_put(obj);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче