Commit 4d8dc2df authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Rob Clark

drm/msm: 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 avatarRob Clark <robdclark@gmail.com>
parent 64686886
...@@ -337,7 +337,7 @@ static int msm_drm_uninit(struct device *dev) ...@@ -337,7 +337,7 @@ static int msm_drm_uninit(struct device *dev)
mdss->funcs->destroy(ddev); mdss->funcs->destroy(ddev);
ddev->dev_private = NULL; ddev->dev_private = NULL;
drm_dev_unref(ddev); drm_dev_put(ddev);
kfree(priv); kfree(priv);
...@@ -452,7 +452,7 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv) ...@@ -452,7 +452,7 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv)
priv = kzalloc(sizeof(*priv), GFP_KERNEL); priv = kzalloc(sizeof(*priv), GFP_KERNEL);
if (!priv) { if (!priv) {
ret = -ENOMEM; ret = -ENOMEM;
goto err_unref_drm_dev; goto err_put_drm_dev;
} }
ddev->dev_private = priv; ddev->dev_private = priv;
...@@ -653,8 +653,8 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv) ...@@ -653,8 +653,8 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv)
mdss->funcs->destroy(ddev); mdss->funcs->destroy(ddev);
err_free_priv: err_free_priv:
kfree(priv); kfree(priv);
err_unref_drm_dev: err_put_drm_dev:
drm_dev_unref(ddev); drm_dev_put(ddev);
return ret; return ret;
} }
......
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