Commit a08eac47 authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Benjamin Gaignard

drm/sti: 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>
Acked-by: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180712152639.30934-1-tzimmermann@suse.de
parent a1a6fa3d
...@@ -224,7 +224,7 @@ static int sti_bind(struct device *dev) ...@@ -224,7 +224,7 @@ static int sti_bind(struct device *dev)
ret = sti_init(ddev); ret = sti_init(ddev);
if (ret) if (ret)
goto err_drm_dev_unref; goto err_drm_dev_put;
ret = component_bind_all(ddev->dev, ddev); ret = component_bind_all(ddev->dev, ddev);
if (ret) if (ret)
...@@ -248,8 +248,8 @@ static int sti_bind(struct device *dev) ...@@ -248,8 +248,8 @@ static int sti_bind(struct device *dev)
drm_mode_config_cleanup(ddev); drm_mode_config_cleanup(ddev);
err_cleanup: err_cleanup:
sti_cleanup(ddev); sti_cleanup(ddev);
err_drm_dev_unref: err_drm_dev_put:
drm_dev_unref(ddev); drm_dev_put(ddev);
return ret; return ret;
} }
...@@ -259,7 +259,7 @@ static void sti_unbind(struct device *dev) ...@@ -259,7 +259,7 @@ static void sti_unbind(struct device *dev)
drm_dev_unregister(ddev); drm_dev_unregister(ddev);
sti_cleanup(ddev); sti_cleanup(ddev);
drm_dev_unref(ddev); drm_dev_put(ddev);
} }
static const struct component_master_ops sti_ops = { static const struct component_master_ops sti_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