aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tve200/tve200_drv.c
diff options
context:
space:
mode:
authorFernando Ramos <greenfoo@gluegarage.com>2018-11-15 23:16:23 +0100
committerLinus Walleij <linus.walleij@linaro.org>2018-11-24 22:12:54 +0100
commit808bad32ea423321bff17178aebfbc507165ab3b (patch)
tree42429f9f65ec86ae42b1586b02118f191d8c6be3 /drivers/gpu/drm/tve200/tve200_drv.c
parentdrm: remove deprecated "[__]drm_gem_object_[un]reference[_locked]" functions (diff)
downloadlinux-dev-808bad32ea423321bff17178aebfbc507165ab3b.tar.xz
linux-dev-808bad32ea423321bff17178aebfbc507165ab3b.zip
drm: replace "drm_dev_unref" function with "drm_dev_put"
This patch unifies the naming of DRM functions for reference counting as requested on Documentation/gpu/todo.rst Signed-off-by: Fernando Ramos <greenfoo@gluegarage.com> Acked-by: Boris Brezillon <boris.brezillon@bootlin.com> Acked-by: Alexey Brodkin <abrodkin@synopsys.com> Acked-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20181115221634.22715-4-greenfoo@gluegarage.com
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/tve200/tve200_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tve200/tve200_drv.c b/drivers/gpu/drm/tve200/tve200_drv.c
index 72efcecb44f7..28e2d03c0ccf 100644
--- a/drivers/gpu/drm/tve200/tve200_drv.c
+++ b/drivers/gpu/drm/tve200/tve200_drv.c
@@ -249,7 +249,7 @@ static int tve200_probe(struct platform_device *pdev)
clk_disable:
clk_disable_unprepare(priv->pclk);
dev_unref:
- drm_dev_unref(drm);
+ drm_dev_put(drm);
return ret;
}
@@ -263,7 +263,7 @@ static int tve200_remove(struct platform_device *pdev)
drm_panel_bridge_remove(priv->bridge);
drm_mode_config_cleanup(drm);
clk_disable_unprepare(priv->pclk);
- drm_dev_unref(drm);
+ drm_dev_put(drm);
return 0;
}