OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f45c77
)
drm/sun4i: Replace drm_dev_unref with drm_dev_put
author
Thomas Zimmermann
<tzimmermann@suse.de>
Tue, 17 Jul 2018 08:48:14 +0000
(10:48 +0200)
committer
Maxime Ripard
<maxime.ripard@bootlin.com>
Tue, 17 Jul 2018 12:17:06 +0000
(14:17 +0200)
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: Maxime Ripard <maxime.ripard@bootlin.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20180717084814.18091-1-tzimmermann@suse.de
drivers/gpu/drm/sun4i/sun4i_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/sun4i/sun4i_drv.c
b/drivers/gpu/drm/sun4i/sun4i_drv.c
index
03ffbcc
..
dd19d67
100644
(file)
--- a/
drivers/gpu/drm/sun4i/sun4i_drv.c
+++ b/
drivers/gpu/drm/sun4i/sun4i_drv.c
@@
-144,7
+144,7
@@
cleanup_mode_config:
drm_mode_config_cleanup(drm);
of_reserved_mem_device_release(dev);
free_drm:
- drm_dev_
unref
(drm);
+ drm_dev_
put
(drm);
return ret;
}
@@
-157,7
+157,7
@@
static void sun4i_drv_unbind(struct device *dev)
sun4i_framebuffer_free(drm);
drm_mode_config_cleanup(drm);
of_reserved_mem_device_release(dev);
- drm_dev_
unref
(drm);
+ drm_dev_
put
(drm);
}
static const struct component_master_ops sun4i_drv_master_ops = {