|
@@ -775,10 +775,11 @@ static ssize_t show_protocols(struct device *device,
|
|
if (dev->driver_type == RC_DRIVER_SCANCODE) {
|
|
if (dev->driver_type == RC_DRIVER_SCANCODE) {
|
|
enabled = dev->rc_map.rc_type;
|
|
enabled = dev->rc_map.rc_type;
|
|
allowed = dev->allowed_protos;
|
|
allowed = dev->allowed_protos;
|
|
- } else {
|
|
|
|
|
|
+ } else if (dev->raw) {
|
|
enabled = dev->raw->enabled_protocols;
|
|
enabled = dev->raw->enabled_protocols;
|
|
allowed = ir_raw_get_allowed_protocols();
|
|
allowed = ir_raw_get_allowed_protocols();
|
|
- }
|
|
|
|
|
|
+ } else
|
|
|
|
+ return -ENODEV;
|
|
|
|
|
|
IR_dprintk(1, "allowed - 0x%llx, enabled - 0x%llx\n",
|
|
IR_dprintk(1, "allowed - 0x%llx, enabled - 0x%llx\n",
|
|
(long long)allowed,
|
|
(long long)allowed,
|