drm/vc4: hdmi: Unregister codec device on unbind
authorMaxime Ripard <maxime@cerno.tech>
Thu, 27 Jan 2022 11:14:52 +0000 (12:14 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 17 Feb 2022 16:27:54 +0000 (17:27 +0100)
commite40945ab7c7f966d0c37b7bd7b0596497dfe228d
treeac03068db4d62a16246f6cc9322263d6158aa3e4
parent439cf34c8e0a8a33d8c15a31be1b7423426bc765
drm/vc4: hdmi: Unregister codec device on unbind

On bind we will register the HDMI codec device but we don't unregister
it on unbind, leading to a device leakage. Unregister our device at
unbind.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220127111452.222002-1-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h