mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
drm/vc4: Replace drm_dev_unref with drm_dev_put
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
This commit is contained in:
parent
d8b3f454da
commit
a708edf13f
1 changed files with 4 additions and 4 deletions
|
@ -288,7 +288,7 @@ static int vc4_drm_bind(struct device *dev)
|
||||||
|
|
||||||
ret = vc4_bo_cache_init(drm);
|
ret = vc4_bo_cache_init(drm);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto dev_unref;
|
goto dev_put;
|
||||||
|
|
||||||
drm_mode_config_init(drm);
|
drm_mode_config_init(drm);
|
||||||
|
|
||||||
|
@ -313,8 +313,8 @@ unbind_all:
|
||||||
gem_destroy:
|
gem_destroy:
|
||||||
vc4_gem_destroy(drm);
|
vc4_gem_destroy(drm);
|
||||||
vc4_bo_cache_destroy(drm);
|
vc4_bo_cache_destroy(drm);
|
||||||
dev_unref:
|
dev_put:
|
||||||
drm_dev_unref(drm);
|
drm_dev_put(drm);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -331,7 +331,7 @@ static void vc4_drm_unbind(struct device *dev)
|
||||||
|
|
||||||
drm_atomic_private_obj_fini(&vc4->ctm_manager);
|
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 = {
|
static const struct component_master_ops vc4_drm_ops = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue