aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2018-09-26 07:43:12 -0400
committerStefan Agner <stefan@agner.ch>2018-09-26 16:20:16 -0400
commita74c0aa524050e5fd6c275a153b1f37283f6e37c (patch)
treef9d2894a45808b3bbd87881245c94f9575a6a5f8
parent3b9356194d878f5bc0b4d0b9e8419f449a16e5b5 (diff)
drm/fsl-dcu: 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> Signed-off-by: Stefan Agner <stefan@agner.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20180926114312.23097-1-tzimmermann@suse.de
-rw-r--r--drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
index 80232321a244..0496be5212e1 100644
--- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
+++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
@@ -353,12 +353,12 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev)
353 353
354 ret = drm_dev_register(drm, 0); 354 ret = drm_dev_register(drm, 0);
355 if (ret < 0) 355 if (ret < 0)
356 goto unref; 356 goto put;
357 357
358 return 0; 358 return 0;
359 359
360unref: 360put:
361 drm_dev_unref(drm); 361 drm_dev_put(drm);
362unregister_pix_clk: 362unregister_pix_clk:
363 clk_unregister(fsl_dev->pix_clk); 363 clk_unregister(fsl_dev->pix_clk);
364disable_clk: 364disable_clk:
@@ -371,7 +371,7 @@ static int fsl_dcu_drm_remove(struct platform_device *pdev)
371 struct fsl_dcu_drm_device *fsl_dev = platform_get_drvdata(pdev); 371 struct fsl_dcu_drm_device *fsl_dev = platform_get_drvdata(pdev);
372 372
373 drm_dev_unregister(fsl_dev->drm); 373 drm_dev_unregister(fsl_dev->drm);
374 drm_dev_unref(fsl_dev->drm); 374 drm_dev_put(fsl_dev->drm);
375 clk_disable_unprepare(fsl_dev->clk); 375 clk_disable_unprepare(fsl_dev->clk);
376 clk_unregister(fsl_dev->pix_clk); 376 clk_unregister(fsl_dev->pix_clk);
377 377