projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b256013
)
drm/bochs: Replace drm_gem_object_unreference_unlocked with put function
author
Thomas Zimmermann
<tzimmermann@suse.de>
Wed, 26 Sep 2018 11:36:23 +0000
(13:36 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 1 Oct 2018 07:21:36 +0000
(09:21 +0200)
This patch unifies the naming of DRM functions for reference counting
of struct drm_gem_object. The resulting code is more aligned with the
rest of the Linux kernel interfaces.
v2:
* rebase onto fbdev rework
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link:
http://patchwork.freedesktop.org/patch/msgid/20180926113623.22679-1-tzimmermann@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/bochs/bochs_mm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/bochs/bochs_mm.c
b/drivers/gpu/drm/bochs/bochs_mm.c
index
a61c1ec
..
e6ccf7f
100644
(file)
--- a/
drivers/gpu/drm/bochs/bochs_mm.c
+++ b/
drivers/gpu/drm/bochs/bochs_mm.c
@@
-414,7
+414,7
@@
int bochs_dumb_create(struct drm_file *file, struct drm_device *dev,
return ret;
ret = drm_gem_handle_create(file, gobj, &handle);
- drm_gem_object_
unreference
_unlocked(gobj);
+ drm_gem_object_
put
_unlocked(gobj);
if (ret)
return ret;
@@
-454,6
+454,6
@@
int bochs_dumb_mmap_offset(struct drm_file *file, struct drm_device *dev,
bo = gem_to_bochs_bo(obj);
*offset = bochs_bo_mmap_offset(bo);
- drm_gem_object_
unreference
_unlocked(obj);
+ drm_gem_object_
put
_unlocked(obj);
return 0;
}