Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Thomas Zimmermann and committed by
Shawn Guo
b256013e 1c53ba8f

+2 -2
+2 -2
drivers/gpu/drm/zte/zx_drm_drv.c
··· 114 114 component_unbind_all(dev, drm); 115 115 out_unregister: 116 116 dev_set_drvdata(dev, NULL); 117 - drm_dev_unref(drm); 117 + drm_dev_put(drm); 118 118 return ret; 119 119 } 120 120 ··· 127 127 drm_mode_config_cleanup(drm); 128 128 component_unbind_all(dev, drm); 129 129 dev_set_drvdata(dev, NULL); 130 - drm_dev_unref(drm); 130 + drm_dev_put(drm); 131 131 } 132 132 133 133 static const struct component_master_ops zx_drm_master_ops = {