Commit 8a3fa812 authored by Jarod Wilson's avatar Jarod Wilson Committed by Mauro Carvalho Chehab

V4L/DVB: IR/imon: use the proper ir-core device unregister function

Was using input_unregister_device directly, instead of using
ir_input_unregister, which tears down a bunch of other things in
addition to eventually calling input_unregister_device.
Signed-off-by: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2135436a
...@@ -1943,7 +1943,7 @@ static struct imon_context *imon_init_intf0(struct usb_interface *intf) ...@@ -1943,7 +1943,7 @@ static struct imon_context *imon_init_intf0(struct usb_interface *intf)
return ictx; return ictx;
urb_submit_failed: urb_submit_failed:
input_unregister_device(ictx->idev); ir_input_unregister(ictx->idev);
input_free_device(ictx->idev); input_free_device(ictx->idev);
idev_setup_failed: idev_setup_failed:
find_endpoint_failed: find_endpoint_failed:
...@@ -2306,7 +2306,7 @@ static void __devexit imon_disconnect(struct usb_interface *interface) ...@@ -2306,7 +2306,7 @@ static void __devexit imon_disconnect(struct usb_interface *interface)
if (ifnum == 0) { if (ifnum == 0) {
ictx->dev_present_intf0 = false; ictx->dev_present_intf0 = false;
usb_kill_urb(ictx->rx_urb_intf0); usb_kill_urb(ictx->rx_urb_intf0);
input_unregister_device(ictx->idev); ir_input_unregister(ictx->idev);
if (ictx->display_supported) { if (ictx->display_supported) {
if (ictx->display_type == IMON_DISPLAY_TYPE_LCD) if (ictx->display_type == IMON_DISPLAY_TYPE_LCD)
usb_deregister_dev(interface, &imon_lcd_class); usb_deregister_dev(interface, &imon_lcd_class);
......
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