diff options
Diffstat (limited to 'drivers/media/IR/imon.c')
-rw-r--r-- | drivers/media/IR/imon.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c index 4bbd45f4284c..65c125e44e96 100644 --- a/drivers/media/IR/imon.c +++ b/drivers/media/IR/imon.c | |||
@@ -407,7 +407,7 @@ static int display_close(struct inode *inode, struct file *file) | |||
407 | struct imon_context *ictx = NULL; | 407 | struct imon_context *ictx = NULL; |
408 | int retval = 0; | 408 | int retval = 0; |
409 | 409 | ||
410 | ictx = (struct imon_context *)file->private_data; | 410 | ictx = file->private_data; |
411 | 411 | ||
412 | if (!ictx) { | 412 | if (!ictx) { |
413 | err("%s: no context for device", __func__); | 413 | err("%s: no context for device", __func__); |
@@ -812,7 +812,7 @@ static ssize_t vfd_write(struct file *file, const char *buf, | |||
812 | const unsigned char vfd_packet6[] = { | 812 | const unsigned char vfd_packet6[] = { |
813 | 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF }; | 813 | 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF }; |
814 | 814 | ||
815 | ictx = (struct imon_context *)file->private_data; | 815 | ictx = file->private_data; |
816 | if (!ictx) { | 816 | if (!ictx) { |
817 | err("%s: no context for device", __func__); | 817 | err("%s: no context for device", __func__); |
818 | return -ENODEV; | 818 | return -ENODEV; |
@@ -896,7 +896,7 @@ static ssize_t lcd_write(struct file *file, const char *buf, | |||
896 | int retval = 0; | 896 | int retval = 0; |
897 | struct imon_context *ictx; | 897 | struct imon_context *ictx; |
898 | 898 | ||
899 | ictx = (struct imon_context *)file->private_data; | 899 | ictx = file->private_data; |
900 | if (!ictx) { | 900 | if (!ictx) { |
901 | err("%s: no context for device", __func__); | 901 | err("%s: no context for device", __func__); |
902 | return -ENODEV; | 902 | return -ENODEV; |
@@ -1943,7 +1943,7 @@ static struct imon_context *imon_init_intf0(struct usb_interface *intf) | |||
1943 | return ictx; | 1943 | return ictx; |
1944 | 1944 | ||
1945 | urb_submit_failed: | 1945 | urb_submit_failed: |
1946 | input_unregister_device(ictx->idev); | 1946 | ir_input_unregister(ictx->idev); |
1947 | input_free_device(ictx->idev); | 1947 | input_free_device(ictx->idev); |
1948 | idev_setup_failed: | 1948 | idev_setup_failed: |
1949 | find_endpoint_failed: | 1949 | find_endpoint_failed: |
@@ -2067,6 +2067,7 @@ static void imon_get_ffdc_type(struct imon_context *ictx) | |||
2067 | detected_display_type = IMON_DISPLAY_TYPE_VFD; | 2067 | detected_display_type = IMON_DISPLAY_TYPE_VFD; |
2068 | break; | 2068 | break; |
2069 | /* iMON LCD, MCE IR */ | 2069 | /* iMON LCD, MCE IR */ |
2070 | case 0x9e: | ||
2070 | case 0x9f: | 2071 | case 0x9f: |
2071 | dev_info(ictx->dev, "0xffdc iMON LCD, MCE IR"); | 2072 | dev_info(ictx->dev, "0xffdc iMON LCD, MCE IR"); |
2072 | detected_display_type = IMON_DISPLAY_TYPE_LCD; | 2073 | detected_display_type = IMON_DISPLAY_TYPE_LCD; |
@@ -2306,7 +2307,7 @@ static void __devexit imon_disconnect(struct usb_interface *interface) | |||
2306 | if (ifnum == 0) { | 2307 | if (ifnum == 0) { |
2307 | ictx->dev_present_intf0 = false; | 2308 | ictx->dev_present_intf0 = false; |
2308 | usb_kill_urb(ictx->rx_urb_intf0); | 2309 | usb_kill_urb(ictx->rx_urb_intf0); |
2309 | input_unregister_device(ictx->idev); | 2310 | ir_input_unregister(ictx->idev); |
2310 | if (ictx->display_supported) { | 2311 | if (ictx->display_supported) { |
2311 | if (ictx->display_type == IMON_DISPLAY_TYPE_LCD) | 2312 | if (ictx->display_type == IMON_DISPLAY_TYPE_LCD) |
2312 | usb_deregister_dev(interface, &imon_lcd_class); | 2313 | usb_deregister_dev(interface, &imon_lcd_class); |