Commit 9c0832e3 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 8825a097
...@@ -118,7 +118,7 @@ int mantis_input_init(struct mantis_pci *mantis) ...@@ -118,7 +118,7 @@ int mantis_input_init(struct mantis_pci *mantis)
rc->name = name; rc->name = name;
rc->phys = dev; 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.bustype = BUS_PCI;
rc->id.vendor = mantis->vendor_id; rc->id.vendor = mantis->vendor_id;
...@@ -126,7 +126,7 @@ int mantis_input_init(struct mantis_pci *mantis) ...@@ -126,7 +126,7 @@ int mantis_input_init(struct mantis_pci *mantis)
rc->id.version = 1; rc->id.version = 1;
rc->dev = mantis->pdev->dev; rc->dev = mantis->pdev->dev;
err = input_register_device(rc); err = ir_input_register(rc, &ir_mantis);
if (err) { if (err) {
dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err); dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err);
input_free_device(rc); input_free_device(rc);
...@@ -142,7 +142,7 @@ int mantis_exit(struct mantis_pci *mantis) ...@@ -142,7 +142,7 @@ int mantis_exit(struct mantis_pci *mantis)
{ {
struct input_dev *rc = mantis->rc; struct input_dev *rc = mantis->rc;
input_unregister_device(rc); ir_input_unregister(rc);
return 0; return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment