projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77c56fd
)
drm/stm: Replace drm_dev_unref with drm_dev_put
author
Thomas Zimmermann
<tzimmermann@suse.de>
Fri, 13 Jul 2018 08:06:25 +0000
(10:06 +0200)
committer
Benjamin Gaignard
<benjamin.gaignard@linaro.org>
Fri, 13 Jul 2018 08:11:02 +0000
(10:11 +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>
Acked-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20180713080625.18256-1-tzimmermann@suse.de
drivers/gpu/drm/stm/drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/stm/drv.c
b/drivers/gpu/drm/stm/drv.c
index
8698e08
..
f2021b2
100644
(file)
--- a/
drivers/gpu/drm/stm/drv.c
+++ b/
drivers/gpu/drm/stm/drv.c
@@
-148,16
+148,16
@@
static int stm_drm_platform_probe(struct platform_device *pdev)
ret = drv_load(ddev);
if (ret)
- goto err_
unref
;
+ goto err_
put
;
ret = drm_dev_register(ddev, 0);
if (ret)
- goto err_
unref
;
+ goto err_
put
;
return 0;
-err_
unref
:
- drm_dev_
unref
(ddev);
+err_
put
:
+ drm_dev_
put
(ddev);
return ret;
}
@@
-170,7
+170,7
@@
static int stm_drm_platform_remove(struct platform_device *pdev)
drm_dev_unregister(ddev);
drv_unload(ddev);
- drm_dev_
unref
(ddev);
+ drm_dev_
put
(ddev);
return 0;
}