]> git.ipfire.org Git - people/ms/linux.git/commit
drm/vc4: hdmi: Unregister codec device on unbind
authorMaxime Ripard <maxime@cerno.tech>
Thu, 27 Jan 2022 11:14:52 +0000 (12:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2022 13:23:40 +0000 (14:23 +0100)
commitee22082c3e2f230028afa0e22aa8773b1de3c919
tree9003cdcfb9a14bdc9e8222c8a41480d7bbb6a391
parent5bef4e5089d39042d739ccf9318fd03464f228d4
drm/vc4: hdmi: Unregister codec device on unbind

[ Upstream commit e40945ab7c7f966d0c37b7bd7b0596497dfe228d ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h