diff options
| author | Thierry Reding <[email protected]> | 2017-02-28 14:46:37 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2017-02-28 15:14:53 +0000 |
| commit | 2135ea7aafa26b6bfbbd304459fdb624e82e021e (patch) | |
| tree | c8ada476c9a1b74b666b3245291b7a99f4cbafd2 /drivers/gpu/drm/drm_framebuffer.c | |
| parent | gpu: drm: core: Convert printk(KERN_<LEVEL> to pr_<level> (diff) | |
| download | kernel-2135ea7aafa26b6bfbbd304459fdb624e82e021e.tar.gz kernel-2135ea7aafa26b6bfbbd304459fdb624e82e021e.zip | |
drm: Rename drm_mode_object_get()
Subsequent patches will introduce reference counting APIs that are more
consistent with similar APIs throughout the Linux kernel. These APIs use
the _get() and _put() suffixes and will collide with this existing
function.
Rename the function to drm_mode_object_add() which is a slightly more
accurate description of what it does. Also the kerneldoc for this
function gives an indication that it's badly named because it doesn't
actually acquire a reference to anything.
Reviewed-by: Sean Paul <[email protected]>
Acked-by: Christian König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/drm_framebuffer.c')
| -rw-r--r-- | drivers/gpu/drm/drm_framebuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_framebuffer.c index c0e593a7f9b4..dfc433450b81 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -638,8 +638,8 @@ int drm_framebuffer_init(struct drm_device *dev, struct drm_framebuffer *fb, fb->funcs = funcs; - ret = drm_mode_object_get_reg(dev, &fb->base, DRM_MODE_OBJECT_FB, - false, drm_framebuffer_free); + ret = __drm_mode_object_add(dev, &fb->base, DRM_MODE_OBJECT_FB, + false, drm_framebuffer_free); if (ret) goto out; |
