|
@@ -1814,7 +1814,7 @@ int rc_register_device(struct rc_dev *dev)
|
|
}
|
|
}
|
|
|
|
|
|
/* Ensure that the lirc kfifo is setup before we start the thread */
|
|
/* Ensure that the lirc kfifo is setup before we start the thread */
|
|
- if (dev->driver_type != RC_DRIVER_SCANCODE) {
|
|
|
|
|
|
+ if (dev->allowed_protocols != RC_PROTO_BIT_CEC) {
|
|
rc = ir_lirc_register(dev);
|
|
rc = ir_lirc_register(dev);
|
|
if (rc < 0)
|
|
if (rc < 0)
|
|
goto out_rx;
|
|
goto out_rx;
|
|
@@ -1835,7 +1835,7 @@ int rc_register_device(struct rc_dev *dev)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
out_lirc:
|
|
out_lirc:
|
|
- if (dev->driver_type != RC_DRIVER_SCANCODE)
|
|
|
|
|
|
+ if (dev->allowed_protocols != RC_PROTO_BIT_CEC)
|
|
ir_lirc_unregister(dev);
|
|
ir_lirc_unregister(dev);
|
|
out_rx:
|
|
out_rx:
|
|
rc_free_rx_device(dev);
|
|
rc_free_rx_device(dev);
|
|
@@ -1898,7 +1898,7 @@ void rc_unregister_device(struct rc_dev *dev)
|
|
* lirc device should be freed with dev->registered = false, so
|
|
* lirc device should be freed with dev->registered = false, so
|
|
* that userspace polling will get notified.
|
|
* that userspace polling will get notified.
|
|
*/
|
|
*/
|
|
- if (dev->driver_type != RC_DRIVER_SCANCODE)
|
|
|
|
|
|
+ if (dev->allowed_protocols != RC_PROTO_BIT_CEC)
|
|
ir_lirc_unregister(dev);
|
|
ir_lirc_unregister(dev);
|
|
|
|
|
|
device_del(&dev->dev);
|
|
device_del(&dev->dev);
|