diff options
Diffstat (limited to 'linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c')
-rw-r--r-- | linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c index 82931c0c9..95a850f0b 100644 --- a/linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c +++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c @@ -150,6 +150,9 @@ int dibusb_remote_init(struct usb_dibusb *dib) { int i; + if (dib->dibdev->dev_cl->remote_type == DIBUSB_RC_NO) + return 0; + /* Initialise the remote-control structures.*/ init_input_dev(&dib->rc_input_dev); @@ -181,6 +184,9 @@ int dibusb_remote_init(struct usb_dibusb *dib) int dibusb_remote_exit(struct usb_dibusb *dib) { + if (dib->dibdev->dev_cl->remote_type == DIBUSB_RC_NO) + return 0; + if (dib->init_state & DIBUSB_STATE_REMOTE) { cancel_delayed_work(&dib->rc_query_work); flush_scheduled_work(); |