projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b93561
)
drm/fsl-dcu: Replace drm_dev_unref with drm_dev_put
author
Thomas Zimmermann
<tzimmermann@suse.de>
Wed, 26 Sep 2018 11:43:12 +0000
(13:43 +0200)
committer
Stefan Agner
<stefan@agner.ch>
Wed, 26 Sep 2018 20:20:16 +0000
(22:20 +0200)
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
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
patch
|
blob
|
history
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 80232321a244ad748bed46900e1b7d60c01cbe2a..0496be5212e126fc793aa5f50169fd29f0f6d26f 100644
(file)
--- 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)
ret = drm_dev_register(drm, 0);
if (ret < 0)
- goto
unref
;
+ goto
put
;
return 0;
-
unref
:
- drm_dev_
unref
(drm);
+
put
:
+ drm_dev_
put
(drm);
unregister_pix_clk:
clk_unregister(fsl_dev->pix_clk);
disable_clk:
@@
-371,7
+371,7
@@
static int fsl_dcu_drm_remove(struct platform_device *pdev)
struct fsl_dcu_drm_device *fsl_dev = platform_get_drvdata(pdev);
drm_dev_unregister(fsl_dev->drm);
- drm_dev_
unref
(fsl_dev->drm);
+ drm_dev_
put
(fsl_dev->drm);
clk_disable_unprepare(fsl_dev->clk);
clk_unregister(fsl_dev->pix_clk);