diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2018-09-26 13:41:39 +0200 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2018-11-07 17:35:52 +0100 |
commit | 99e294492ef9eb7edaf92b1280377abd07f99c40 (patch) | |
tree | d249c776d0a9b4aa27b7da7c9402e25a853e0219 /drivers/gpu | |
parent | drm/etnaviv: consolidate hardware fence handling in etnaviv_gpu (diff) | |
download | linux-99e294492ef9eb7edaf92b1280377abd07f99c40.tar.xz linux-99e294492ef9eb7edaf92b1280377abd07f99c40.zip |
drm/etnaviv: 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: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_drv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c index 83c1f46670bf..1bb1d09e5fb0 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c @@ -523,7 +523,7 @@ static int etnaviv_bind(struct device *dev) if (!priv) { dev_err(dev, "failed to allocate private data\n"); ret = -ENOMEM; - goto out_unref; + goto out_put; } drm->dev_private = priv; @@ -549,8 +549,8 @@ out_register: component_unbind_all(dev, drm); out_bind: kfree(priv); -out_unref: - drm_dev_unref(drm); +out_put: + drm_dev_put(drm); return ret; } @@ -567,7 +567,7 @@ static void etnaviv_unbind(struct device *dev) drm->dev_private = NULL; kfree(priv); - drm_dev_unref(drm); + drm_dev_put(drm); } static const struct component_master_ops etnaviv_master_ops = { |