]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec: disable the hardware when unregistered
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 22 Nov 2017 09:12:39 +0000 (04:12 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 16:11:25 +0000 (11:11 -0500)
commit60e62e6635fc011978758b584c687bf2394926d3
treebcb5da7425de2bfb99c6ac1f34ed15eff7b79040
parent68c01fa19189baa3842e70edf492b347894f3f70
media: cec: disable the hardware when unregistered

When the device is being unregistered disable the hardware, don't wait
until cec_delete_adapter is called as the hardware may have disappeared by
then. This would be the case for hotplugable devices.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Bård Eirik Winther <bwinther@cisco.com>
Tested-by: Bård Eirik Winther <bwinther@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-api.c
drivers/media/cec/cec-core.c
include/media/cec.h