[media] cec: add check if adapter is unregistered
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 10 Jul 2016 13:11:17 +0000 (10:11 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 12 Jul 2016 16:38:16 +0000 (13:38 -0300)
commitc000e5dad17d20c644bbf3ead52c334025d11ada
tree2bac0b609d6260e786cab8a4f132fe0733eccc03
parent65898fb99cd7629683d7759d0c0242b8280413fc
[media] cec: add check if adapter is unregistered

CEC USB dongles can be unplugged at any time, and at that point they will
be unregistered. Make sure that any attempt afterwards to set the physical
or logical addresses will be ignored.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/cec/cec-adap.c