projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b3f45
)
drm/vc4: Replace drm_dev_unref with drm_dev_put
author
Thomas Zimmermann
<tzimmermann@suse.de>
Tue, 17 Jul 2018 08:54:28 +0000
(10:54 +0200)
committer
Eric Anholt
<eric@anholt.net>
Tue, 17 Jul 2018 18:24:33 +0000
(11:24 -0700)
This patch unifies the naming of DRM functions for reference counting
of struct drm_device. The resulting code is more aligned with the rest
of the Linux kernel interfaces.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Eric Anholt <eric@anholt.net>
Link:
https://patchwork.freedesktop.org/patch/msgid/20180717085428.18500-1-tzimmermann@suse.de
drivers/gpu/drm/vc4/vc4_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vc4/vc4_drv.c
b/drivers/gpu/drm/vc4/vc4_drv.c
index e42fd5ec41cc9e180605d9f0f47036ffa4d4db64..04270a14fcaaf491a3344f13ce169e7da42cd186 100644
(file)
--- a/
drivers/gpu/drm/vc4/vc4_drv.c
+++ b/
drivers/gpu/drm/vc4/vc4_drv.c
@@
-288,7
+288,7
@@
static int vc4_drm_bind(struct device *dev)
ret = vc4_bo_cache_init(drm);
if (ret)
- goto dev_
unref
;
+ goto dev_
put
;
drm_mode_config_init(drm);
@@
-313,8
+313,8
@@
unbind_all:
gem_destroy:
vc4_gem_destroy(drm);
vc4_bo_cache_destroy(drm);
-dev_
unref
:
- drm_dev_
unref
(drm);
+dev_
put
:
+ drm_dev_
put
(drm);
return ret;
}
@@
-331,7
+331,7
@@
static void vc4_drm_unbind(struct device *dev)
drm_atomic_private_obj_fini(&vc4->ctm_manager);
- drm_dev_
unref
(drm);
+ drm_dev_
put
(drm);
}
static const struct component_master_ops vc4_drm_ops = {