diff options
Diffstat (limited to 'drivers/media/common/ir-common.c')
-rw-r--r-- | drivers/media/common/ir-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/ir-common.c b/drivers/media/common/ir-common.c index a0e700d7a4a4..31fccb4f05d6 100644 --- a/drivers/media/common/ir-common.c +++ b/drivers/media/common/ir-common.c | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include <linux/module.h> | 23 | #include <linux/module.h> |
24 | #include <linux/moduleparam.h> | 24 | #include <linux/moduleparam.h> |
25 | #include <linux/string.h> | ||
25 | #include <media/ir-common.h> | 26 | #include <media/ir-common.h> |
26 | 27 | ||
27 | /* -------------------------------------------------------------------------- */ | 28 | /* -------------------------------------------------------------------------- */ |
@@ -252,7 +253,6 @@ void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, | |||
252 | if (ir_codes) | 253 | if (ir_codes) |
253 | memcpy(ir->ir_codes, ir_codes, sizeof(ir->ir_codes)); | 254 | memcpy(ir->ir_codes, ir_codes, sizeof(ir->ir_codes)); |
254 | 255 | ||
255 | init_input_dev(dev); | ||
256 | dev->keycode = ir->ir_codes; | 256 | dev->keycode = ir->ir_codes; |
257 | dev->keycodesize = sizeof(IR_KEYTAB_TYPE); | 257 | dev->keycodesize = sizeof(IR_KEYTAB_TYPE); |
258 | dev->keycodemax = IR_KEYTAB_SIZE; | 258 | dev->keycodemax = IR_KEYTAB_SIZE; |