]> git.karo-electronics.de Git - linux-beck.git/commitdiff
V4L/DVB: IR/mceusb: use the proper ir-core device unregister function
authorJarod Wilson <jarod@redhat.com>
Wed, 16 Jun 2010 20:08:32 +0000 (17:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:55:40 +0000 (14:55 -0300)
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: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/mceusb.c

index fe150911a1c49823234827a71ede2d63d88960bd..c9dd2f843855471318340d2ec0223b1b5d106b6d 100644 (file)
@@ -1021,7 +1021,7 @@ static void __devexit mceusb_dev_disconnect(struct usb_interface *intf)
                return;
 
        ir->usbdev = NULL;
-       input_unregister_device(ir->idev);
+       ir_input_unregister(ir->idev);
        usb_kill_urb(ir->urb_in);
        usb_free_urb(ir->urb_in);
        usb_free_coherent(dev, ir->len_in, ir->buf_in, ir->dma_in);