Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1709536
| From | Cihangir Akturk <cakturk@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 24/28] drm/vc4: switch to drm_*_get(), drm_*_put() helpers |
| Date | 2017-08-11 14:40 +0200 |
| Message-ID | <udhol-3ww-5@gated-at.bofh.it> (permalink) |
| References | <udhol-3ww-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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> --- drivers/gpu/drm/vc4/vc4_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_bo.c b/drivers/gpu/drm/vc4/vc4_bo.c index facee39..3afdbf4 100644 --- a/drivers/gpu/drm/vc4/vc4_bo.c +++ b/drivers/gpu/drm/vc4/vc4_bo.c @@ -830,7 +830,7 @@ int vc4_label_bo_ioctl(struct drm_device *dev, void *data, ret = -ENOMEM; mutex_unlock(&vc4->bo_lock); - drm_gem_object_unreference_unlocked(gem_obj); + drm_gem_object_put_unlocked(gem_obj); return ret; } -- 2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v3 24/28] drm/vc4: switch to drm_*_get(), drm_*_put() helpers Cihangir Akturk <cakturk@gmail.com> - 2017-08-11 14:40 +0200
Re: [PATCH v3 24/28] drm/vc4: switch to drm_*_get(), drm_*_put() helpers Eric Anholt <eric@anholt.net> - 2017-08-14 22:00 +0200
Re: [PATCH v3 24/28] drm/vc4: switch to drm_*_get(), drm_*_put() helpers Cihangir Akturk <cakturk@gmail.com> - 2017-08-14 22:10 +0200
Re: [PATCH v3 24/28] drm/vc4: switch to drm_*_get(), drm_*_put() helpers Eric Anholt <eric@anholt.net> - 2017-08-14 23:20 +0200
csiph-web