summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-12-16 23:57:27 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-01-17 11:55:45 -0200
commit9c0832e3990b541ea1b8f5d44fe4c204a5e7d396 (patch)
tree36ad68ddd68e6e541eda58c1401e0b43acdd40b2
parent8825a0970cef408fb2f1a44e3cb05d6ba41a18db (diff)
downloadlinux-3.10-9c0832e3990b541ea1b8f5d44fe4c204a5e7d396.tar.gz
linux-3.10-9c0832e3990b541ea1b8f5d44fe4c204a5e7d396.tar.bz2
linux-3.10-9c0832e3990b541ea1b8f5d44fe4c204a5e7d396.zip
V4L/DVB(13808a): mantis: convert it to the new ir-core register/unregister functions
Fix a merge conflict between mantis and IR cleanups Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/mantis/mantis_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/mantis/mantis_input.c b/drivers/media/dvb/mantis/mantis_input.c
index 487d149c802..6a9df779441 100644
--- a/drivers/media/dvb/mantis/mantis_input.c
+++ b/drivers/media/dvb/mantis/mantis_input.c
@@ -118,7 +118,7 @@ int mantis_input_init(struct mantis_pci *mantis)
rc->name = name;
rc->phys = dev;
- ir_input_init(rc, &rc_state, IR_TYPE_OTHER, &ir_mantis);
+ ir_input_init(rc, &rc_state, IR_TYPE_OTHER);
rc->id.bustype = BUS_PCI;
rc->id.vendor = mantis->vendor_id;
@@ -126,7 +126,7 @@ int mantis_input_init(struct mantis_pci *mantis)
rc->id.version = 1;
rc->dev = mantis->pdev->dev;
- err = input_register_device(rc);
+ err = ir_input_register(rc, &ir_mantis);
if (err) {
dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err);
input_free_device(rc);
@@ -142,7 +142,7 @@ int mantis_exit(struct mantis_pci *mantis)
{
struct input_dev *rc = mantis->rc;
- input_unregister_device(rc);
+ ir_input_unregister(rc);
return 0;
}