提交 f73e8b82 编写于 作者: S Srishti Sharma 提交者: Liviu Dudau

drm/arm: Replace instances of drm_dev_unref with drm_dev_put.

Replace drm_dev_unref with drm_dev_put as it is more consistent
with kernel coding style. Done using the following semantic
patch by coccinelle.

@r@
expression e;
@@

-drm_dev_unref();
+drm_dev_put();
Signed-off-by: NSrishti Sharma <srishtishar@gmail.com>
[split into hdlcd and malidp specific patches]
Signed-off-by: NLiviu Dudau <liviu.dudau@arm.com>
上级 fa56b3f8
...@@ -355,7 +355,7 @@ static int hdlcd_drm_bind(struct device *dev) ...@@ -355,7 +355,7 @@ static int hdlcd_drm_bind(struct device *dev)
err_free: err_free:
drm_mode_config_cleanup(drm); drm_mode_config_cleanup(drm);
dev_set_drvdata(dev, NULL); dev_set_drvdata(dev, NULL);
drm_dev_unref(drm); drm_dev_put(drm);
return ret; return ret;
} }
...@@ -380,7 +380,7 @@ static void hdlcd_drm_unbind(struct device *dev) ...@@ -380,7 +380,7 @@ static void hdlcd_drm_unbind(struct device *dev)
pm_runtime_disable(drm->dev); pm_runtime_disable(drm->dev);
of_reserved_mem_device_release(drm->dev); of_reserved_mem_device_release(drm->dev);
drm_mode_config_cleanup(drm); drm_mode_config_cleanup(drm);
drm_dev_unref(drm); drm_dev_put(drm);
drm->dev_private = NULL; drm->dev_private = NULL;
dev_set_drvdata(dev, NULL); dev_set_drvdata(dev, NULL);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册