media: cec: add adap_free op
This is needed for CEC adapters that allocate resources that have to be freed before the cec_adapter is deleted. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
0861ad14c6
commit
e6259b5f7a
@@ -374,6 +374,8 @@ void cec_delete_adapter(struct cec_adapter *adap)
|
||||
kthread_stop(adap->kthread);
|
||||
if (adap->kthread_config)
|
||||
kthread_stop(adap->kthread_config);
|
||||
if (adap->ops->adap_free)
|
||||
adap->ops->adap_free(adap);
|
||||
#ifdef CONFIG_MEDIA_CEC_RC
|
||||
rc_free_device(adap->rc);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user