diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2018-07-17 10:35:18 +0200 |
---|---|---|
committer | CK Hu <ck.hu@mediatek.com> | 2018-08-27 11:24:34 +0800 |
commit | 8272806d21bf2a7fd74602cc7bade7d12f73ac4b (patch) | |
tree | 09944fa29b1b947696c4eb431d911d9ee6d4decc /drivers/gpu | |
parent | 2b7bd20d5605e0314d677ea21b462543e73e466c (diff) | |
download | linux-8272806d21bf2a7fd74602cc7bade7d12f73ac4b.tar.gz linux-8272806d21bf2a7fd74602cc7bade7d12f73ac4b.tar.bz2 linux-8272806d21bf2a7fd74602cc7bade7d12f73ac4b.zip |
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: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/mediatek/mtk_drm_drv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index b68922a793cb..47ec604289b7 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -381,7 +381,7 @@ static int mtk_drm_bind(struct device *dev) err_deinit: mtk_drm_kms_deinit(drm); err_free: - drm_dev_unref(drm); + drm_dev_put(drm); return ret; } @@ -390,7 +390,7 @@ static void mtk_drm_unbind(struct device *dev) struct mtk_drm_private *private = dev_get_drvdata(dev); drm_dev_unregister(private->drm); - drm_dev_unref(private->drm); + drm_dev_put(private->drm); private->drm = NULL; } @@ -564,7 +564,7 @@ static int mtk_drm_remove(struct platform_device *pdev) drm_dev_unregister(drm); mtk_drm_kms_deinit(drm); - drm_dev_unref(drm); + drm_dev_put(drm); component_master_del(&pdev->dev, &mtk_drm_ops); pm_runtime_disable(&pdev->dev); |