diff options
author | Brandon Pollack <brpol@chromium.org> | 2023-04-25 08:02:40 +0000 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2023-05-08 15:56:25 +0000 |
commit | 6a98a6e40fdf0e105b5f25a58641f30901acdb34 (patch) | |
tree | 999110895d10c935f96cb2fbdfb2575d2429db34 | |
parent | 04408952fe2aa60db266cfa8f6db22a6ff3e1971 (diff) | |
download | linux-6a98a6e40fdf0e105b5f25a58641f30901acdb34.tar.gz linux-6a98a6e40fdf0e105b5f25a58641f30901acdb34.tar.bz2 linux-6a98a6e40fdf0e105b5f25a58641f30901acdb34.zip |
Documentation: vkms: clarify devres managed reference cleanup
added documentation to drm_dev_unregister clarifying that devres managed
devices allocated with devm_drm_dev_alloc do not require calls to
drm_dev_put.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Brandon Pollack <brpol@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230425080240.3582324-1-brpol@chromium.org
-rw-r--r-- | drivers/gpu/drm/drm_drv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index cee0cc522ed9..12687dd9e1ac 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -969,7 +969,9 @@ EXPORT_SYMBOL(drm_dev_register); * * Unregister the DRM device from the system. This does the reverse of * drm_dev_register() but does not deallocate the device. The caller must call - * drm_dev_put() to drop their final reference. + * drm_dev_put() to drop their final reference, unless it is managed with devres + * (as devices allocated with devm_drm_dev_alloc() are), in which case there is + * already an unwind action registered. * * A special form of unregistering for hotpluggable devices is drm_dev_unplug(), * which can be called while there are still open users of @dev. |