aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ir-kbd-gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/ir-kbd-gpio.c')
-rw-r--r--drivers/media/video/ir-kbd-gpio.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/video/ir-kbd-gpio.c b/drivers/media/video/ir-kbd-gpio.c
index de1385e5d05e..556da9ff128f 100644
--- a/drivers/media/video/ir-kbd-gpio.c
+++ b/drivers/media/video/ir-kbd-gpio.c
@@ -26,9 +26,8 @@
26#include <linux/input.h> 26#include <linux/input.h>
27#include <linux/pci.h> 27#include <linux/pci.h>
28 28
29#include <media/ir-common.h>
30
31#include "bttv.h" 29#include "bttv.h"
30#include <media/ir-common.h>
32 31
33/* ---------------------------------------------------------------------- */ 32/* ---------------------------------------------------------------------- */
34 33
@@ -672,6 +671,8 @@ static int ir_probe(struct device *dev)
672 snprintf(ir->phys, sizeof(ir->phys), "pci-%s/ir0", 671 snprintf(ir->phys, sizeof(ir->phys), "pci-%s/ir0",
673 pci_name(sub->core->pci)); 672 pci_name(sub->core->pci));
674 673
674 ir->input = input_dev;
675 ir->sub = sub;
675 ir_input_init(input_dev, &ir->ir, ir_type, ir_codes); 676 ir_input_init(input_dev, &ir->ir, ir_type, ir_codes);
676 input_dev->name = ir->name; 677 input_dev->name = ir->name;
677 input_dev->phys = ir->phys; 678 input_dev->phys = ir->phys;
@@ -686,9 +687,6 @@ static int ir_probe(struct device *dev)
686 } 687 }
687 input_dev->cdev.dev = &sub->core->pci->dev; 688 input_dev->cdev.dev = &sub->core->pci->dev;
688 689
689 ir->input = input_dev;
690 ir->sub = sub;
691
692 if (ir->polling) { 690 if (ir->polling) {
693 INIT_WORK(&ir->work, ir_work, ir); 691 INIT_WORK(&ir->work, ir_work, ir);
694 init_timer(&ir->timer); 692 init_timer(&ir->timer);