aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tm6000/tm6000-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/tm6000/tm6000-input.c')
-rw-r--r--drivers/media/video/tm6000/tm6000-input.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/tm6000/tm6000-input.c b/drivers/media/video/tm6000/tm6000-input.c
index 7844607dd45a..859eb90e4d56 100644
--- a/drivers/media/video/tm6000/tm6000-input.c
+++ b/drivers/media/video/tm6000/tm6000-input.c
@@ -481,8 +481,6 @@ int tm6000_ir_fini(struct tm6000_core *dev)
481 481
482 dprintk(2, "%s\n",__func__); 482 dprintk(2, "%s\n",__func__);
483 483
484 rc_unregister_device(ir->rc);
485
486 if (!ir->polling) 484 if (!ir->polling)
487 __tm6000_ir_int_stop(ir->rc); 485 __tm6000_ir_int_stop(ir->rc);
488 486
@@ -492,6 +490,7 @@ int tm6000_ir_fini(struct tm6000_core *dev)
492 tm6000_flash_led(dev, 0); 490 tm6000_flash_led(dev, 0);
493 ir->pwled = 0; 491 ir->pwled = 0;
494 492
493 rc_unregister_device(ir->rc);
495 494
496 kfree(ir); 495 kfree(ir);
497 dev->ir = NULL; 496 dev->ir = NULL;