media: cec: core: disable adapter in cec_devnode_unregister
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 20 Apr 2023 07:26:53 +0000 (08:26 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 26 May 2023 09:52:05 +0000 (10:52 +0100)
commitfe4526d99e2e06b08bb80316c3a596ea6a807b75
tree8c60a6db6904b40e1aaa14d1cdddd915cde475f5
parented17f89e9502f03af493e130620a9bb74c07cf28
media: cec: core: disable adapter in cec_devnode_unregister

Explicitly disable the CEC adapter in cec_devnode_unregister()

Usually this does not really do anything important, but for drivers
that use the CEC pin framework this is needed to properly stop the
hrtimer. Without this a crash would happen when such a driver is
unloaded with rmmod.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/cec/core/cec-adap.c
drivers/media/cec/core/cec-core.c
drivers/media/cec/core/cec-priv.h