diff options
author | Thomas Zimmermann | 2018-09-26 14:06:50 +0200 |
---|---|---|
committer | Shawn Guo | 2018-09-30 08:54:37 +0200 |
commit | b256013e720788ecacae2a6f7e7dcbba315adf05 (patch) | |
tree | 87cccf7b92c21088dc1c94a1023851b6c73a26a5 /drivers/gpu/drm/zte | |
parent | drm/rockchip: dw_hdmi: add dw-hdmi support for the rk3328 (diff) | |
download | kernel-qcow2-linux-b256013e720788ecacae2a6f7e7dcbba315adf05.tar.gz kernel-qcow2-linux-b256013e720788ecacae2a6f7e7dcbba315adf05.tar.xz kernel-qcow2-linux-b256013e720788ecacae2a6f7e7dcbba315adf05.zip |
drm/zte: 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>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180926120650.25614-1-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/zte')
-rw-r--r-- | drivers/gpu/drm/zte/zx_drm_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/zte/zx_drm_drv.c b/drivers/gpu/drm/zte/zx_drm_drv.c index 11ef17c2d1c1..5b6f1eda52e0 100644 --- a/drivers/gpu/drm/zte/zx_drm_drv.c +++ b/drivers/gpu/drm/zte/zx_drm_drv.c @@ -114,7 +114,7 @@ out_unbind: component_unbind_all(dev, drm); out_unregister: dev_set_drvdata(dev, NULL); - drm_dev_unref(drm); + drm_dev_put(drm); return ret; } @@ -127,7 +127,7 @@ static void zx_drm_unbind(struct device *dev) drm_mode_config_cleanup(drm); component_unbind_all(dev, drm); dev_set_drvdata(dev, NULL); - drm_dev_unref(drm); + drm_dev_put(drm); } static const struct component_master_ops zx_drm_master_ops = { |