diff options
Diffstat (limited to 'drivers/media/IR/ir-jvc-decoder.c')
-rw-r--r-- | drivers/media/IR/ir-jvc-decoder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/IR/ir-jvc-decoder.c b/drivers/media/IR/ir-jvc-decoder.c index 0b804944cbb0..b02e8013b9bb 100644 --- a/drivers/media/IR/ir-jvc-decoder.c +++ b/drivers/media/IR/ir-jvc-decoder.c | |||
@@ -253,6 +253,7 @@ static int ir_jvc_register(struct input_dev *input_dev) | |||
253 | { | 253 | { |
254 | struct ir_input_dev *ir_dev = input_get_drvdata(input_dev); | 254 | struct ir_input_dev *ir_dev = input_get_drvdata(input_dev); |
255 | struct decoder_data *data; | 255 | struct decoder_data *data; |
256 | u64 ir_type = ir_dev->rc_tab.ir_type; | ||
256 | int rc; | 257 | int rc; |
257 | 258 | ||
258 | rc = sysfs_create_group(&ir_dev->dev.kobj, &decoder_attribute_group); | 259 | rc = sysfs_create_group(&ir_dev->dev.kobj, &decoder_attribute_group); |
@@ -266,7 +267,8 @@ static int ir_jvc_register(struct input_dev *input_dev) | |||
266 | } | 267 | } |
267 | 268 | ||
268 | data->ir_dev = ir_dev; | 269 | data->ir_dev = ir_dev; |
269 | data->enabled = 1; | 270 | if (ir_type == IR_TYPE_JVC || ir_type == IR_TYPE_UNKNOWN) |
271 | data->enabled = 1; | ||
270 | 272 | ||
271 | spin_lock(&decoder_lock); | 273 | spin_lock(&decoder_lock); |
272 | list_add_tail(&data->list, &decoder_list); | 274 | list_add_tail(&data->list, &decoder_list); |