Commit 99e29449 authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Lucas Stach

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: default avatarThomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent 3283ee77
...@@ -523,7 +523,7 @@ static int etnaviv_bind(struct device *dev) ...@@ -523,7 +523,7 @@ static int etnaviv_bind(struct device *dev)
if (!priv) { if (!priv) {
dev_err(dev, "failed to allocate private data\n"); dev_err(dev, "failed to allocate private data\n");
ret = -ENOMEM; ret = -ENOMEM;
goto out_unref; goto out_put;
} }
drm->dev_private = priv; drm->dev_private = priv;
...@@ -549,8 +549,8 @@ static int etnaviv_bind(struct device *dev) ...@@ -549,8 +549,8 @@ static int etnaviv_bind(struct device *dev)
component_unbind_all(dev, drm); component_unbind_all(dev, drm);
out_bind: out_bind:
kfree(priv); kfree(priv);
out_unref: out_put:
drm_dev_unref(drm); drm_dev_put(drm);
return ret; return ret;
} }
...@@ -567,7 +567,7 @@ static void etnaviv_unbind(struct device *dev) ...@@ -567,7 +567,7 @@ static void etnaviv_unbind(struct device *dev)
drm->dev_private = NULL; drm->dev_private = NULL;
kfree(priv); kfree(priv);
drm_dev_unref(drm); drm_dev_put(drm);
} }
static const struct component_master_ops etnaviv_master_ops = { static const struct component_master_ops etnaviv_master_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment