diff options
author | Cihangir Akturk | 2017-08-11 14:33:06 +0200 |
---|---|---|
committer | Sean Paul | 2017-08-11 17:35:21 +0200 |
commit | adedbf0325ef885e9599f9c812dc3bf5610adcf8 (patch) | |
tree | 4ba657ade101fd6d923fa280f17eedc281b337ea /drivers/gpu/drm/rockchip/rockchip_drm_gem.c | |
parent | drm/mediatek: switch to drm_*_get(), drm_*_put() helpers (diff) | |
download | kernel-qcow2-linux-adedbf0325ef885e9599f9c812dc3bf5610adcf8.tar.gz kernel-qcow2-linux-adedbf0325ef885e9599f9c812dc3bf5610adcf8.tar.xz kernel-qcow2-linux-adedbf0325ef885e9599f9c812dc3bf5610adcf8.zip |
drm/rockchip: 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>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1502454794-28558-21-git-send-email-cakturk@gmail.com
Diffstat (limited to 'drivers/gpu/drm/rockchip/rockchip_drm_gem.c')
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c index f74333efe4bb..1869c8bb76c8 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c @@ -383,7 +383,7 @@ rockchip_gem_create_with_handle(struct drm_file *file_priv, goto err_handle_create; /* drop reference from allocate - handle holds it now. */ - drm_gem_object_unreference_unlocked(obj); + drm_gem_object_put_unlocked(obj); return rk_obj; |