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)
commitc8959a39fd47189a1474a4e92ffa34763589d6b0
treebcb5da7425de2bfb99c6ac1f34ed15eff7b79040
parent15ae0be9c671e912a6749d821bc69ccfff766c19
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