Commit 8272806d authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by CK Hu

drm/mediatek: 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>
Reviewed-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarCK Hu <ck.hu@mediatek.com>
parent 2b7bd20d
...@@ -381,7 +381,7 @@ static int mtk_drm_bind(struct device *dev) ...@@ -381,7 +381,7 @@ static int mtk_drm_bind(struct device *dev)
err_deinit: err_deinit:
mtk_drm_kms_deinit(drm); mtk_drm_kms_deinit(drm);
err_free: err_free:
drm_dev_unref(drm); drm_dev_put(drm);
return ret; return ret;
} }
...@@ -390,7 +390,7 @@ static void mtk_drm_unbind(struct device *dev) ...@@ -390,7 +390,7 @@ static void mtk_drm_unbind(struct device *dev)
struct mtk_drm_private *private = dev_get_drvdata(dev); struct mtk_drm_private *private = dev_get_drvdata(dev);
drm_dev_unregister(private->drm); drm_dev_unregister(private->drm);
drm_dev_unref(private->drm); drm_dev_put(private->drm);
private->drm = NULL; private->drm = NULL;
} }
...@@ -564,7 +564,7 @@ static int mtk_drm_remove(struct platform_device *pdev) ...@@ -564,7 +564,7 @@ static int mtk_drm_remove(struct platform_device *pdev)
drm_dev_unregister(drm); drm_dev_unregister(drm);
mtk_drm_kms_deinit(drm); mtk_drm_kms_deinit(drm);
drm_dev_unref(drm); drm_dev_put(drm);
component_master_del(&pdev->dev, &mtk_drm_ops); component_master_del(&pdev->dev, &mtk_drm_ops);
pm_runtime_disable(&pdev->dev); pm_runtime_disable(&pdev->dev);
......
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