drm/vc4: hdmi: Switch to device-managed CEC initialization
authorMaxime Ripard <maxime@cerno.tech>
Fri, 13 May 2022 11:57:41 +0000 (13:57 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 7 Sep 2022 08:53:04 +0000 (10:53 +0200)
commit1f54daa5b796e9b4721c77fe2994fbc1e1e5fd00
tree73f3ec9fe1c8fb3db8fb1b15732d0fbe66960486
parent441c0c14c17e5d6af61a3f8fa37b0b69d08bc256
drm/vc4: hdmi: Switch to device-managed CEC initialization

The current code to unregister our CEC device needs to be undone manually
when we remove the HDMI driver.

Since the CEC framework will allocate its main structure, and will defer
its deallocation to when the last user will have closed it, we don't really
need to take any particular measure to prevent any use-after-free and can
thus use any managed action.

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