OSDN Git Service

media: pulse8-cec: use adap_free callback
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 11 Dec 2019 16:22:29 +0000 (17:22 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Dec 2019 11:04:32 +0000 (12:04 +0100)
commit601282d65b96bf2cbdc715e08bcdc9ca92b239e8
tree0b189c59cad97180fbd203233fb50543836667a8
parent906870770431cbeb64e73da2111a4636d227f1e0
media: pulse8-cec: use adap_free callback

Don't free everything in the disconnect callback, instead use
the adap_free callback, which is called when the last open
filehandle is closed.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/pulse8-cec/pulse8-cec.c