[media] dvb_usb_v2: add .disconnect() callback
Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
823eebac89
commit
5b6a63cc2f
|
@ -195,6 +195,7 @@ struct dvb_usb_device_properties {
|
|||
#define COLD 1
|
||||
int (*identify_state) (struct dvb_usb_device *);
|
||||
int (*init) (struct dvb_usb_device *);
|
||||
void (*disconnect) (struct dvb_usb_device *);
|
||||
int (*get_rc_config) (struct dvb_usb_device *, struct dvb_usb_rc *);
|
||||
int (*get_usb_stream_config) (struct dvb_frontend *,
|
||||
struct usb_data_stream_properties *);
|
||||
|
|
|
@ -428,6 +428,9 @@ void dvb_usbv2_disconnect(struct usb_interface *intf)
|
|||
if (d->work_pid != current->pid)
|
||||
cancel_work_sync(&d->probe_work);
|
||||
|
||||
if (d->props.disconnect)
|
||||
d->props.disconnect(d);
|
||||
|
||||
name = d->name;
|
||||
dvb_usbv2_exit(d);
|
||||
|
||||
|
|
Loading…
Reference in New Issue