drm/vc4: hdmi: Switch to DRM-managed connector initialization
authorMaxime Ripard <maxime@cerno.tech>
Wed, 11 May 2022 09:05:36 +0000 (11:05 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 7 Sep 2022 08:53:04 +0000 (10:53 +0200)
commitadd156c2ef267cd1532a84a9840086b3b276cf8c
treecdf3c7a5fe7dafb654ee9ab3da596625781977d8
parentbaa2f7a38b2e03214c748e907883af92358220ff
drm/vc4: hdmi: Switch to DRM-managed connector initialization

The current code will call drm_connector_unregister() and
drm_connector_cleanup() when the device is unbound. However, by then, there
might still be some references held to that connector, including by the
userspace that might still have the DRM device open.

Let's switch to a DRM-managed initialization to clean up after ourselves
only once the DRM device has been last closed.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hdmi.c