aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/IR/imon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/IR/imon.c')
-rw-r--r--drivers/media/IR/imon.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c
index 65c125e44e96..a665d48bed47 100644
--- a/drivers/media/IR/imon.c
+++ b/drivers/media/IR/imon.c
@@ -1944,7 +1944,6 @@ static struct imon_context *imon_init_intf0(struct usb_interface *intf)
1944 1944
1945urb_submit_failed: 1945urb_submit_failed:
1946 ir_input_unregister(ictx->idev); 1946 ir_input_unregister(ictx->idev);
1947 input_free_device(ictx->idev);
1948idev_setup_failed: 1947idev_setup_failed:
1949find_endpoint_failed: 1948find_endpoint_failed:
1950 mutex_unlock(&ictx->lock); 1949 mutex_unlock(&ictx->lock);
@@ -2014,10 +2013,8 @@ static struct imon_context *imon_init_intf1(struct usb_interface *intf,
2014 return ictx; 2013 return ictx;
2015 2014
2016urb_submit_failed: 2015urb_submit_failed:
2017 if (ictx->touch) { 2016 if (ictx->touch)
2018 input_unregister_device(ictx->touch); 2017 input_unregister_device(ictx->touch);
2019 input_free_device(ictx->touch);
2020 }
2021touch_setup_failed: 2018touch_setup_failed:
2022find_endpoint_failed: 2019find_endpoint_failed:
2023 mutex_unlock(&ictx->lock); 2020 mutex_unlock(&ictx->lock);