aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx88/cx88-input.c')
-rw-r--r--drivers/media/video/cx88/cx88-input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c
index 92b8cdf9fb81..d4dc2c2a3cbc 100644
--- a/drivers/media/video/cx88/cx88-input.c
+++ b/drivers/media/video/cx88/cx88-input.c
@@ -393,7 +393,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
393 cx88_ir_stop(core, ir); 393 cx88_ir_stop(core, ir);
394 core->ir = NULL; 394 core->ir = NULL;
395 err_out_free: 395 err_out_free:
396 ir_input_free(input_dev); 396 ir_input_unregister(input_dev);
397 input_free_device(input_dev); 397 input_free_device(input_dev);
398 kfree(ir); 398 kfree(ir);
399 return err; 399 return err;
@@ -408,7 +408,7 @@ int cx88_ir_fini(struct cx88_core *core)
408 return 0; 408 return 0;
409 409
410 cx88_ir_stop(core, ir); 410 cx88_ir_stop(core, ir);
411 ir_input_free(ir->input); 411 ir_input_unregister(ir->input);
412 input_unregister_device(ir->input); 412 input_unregister_device(ir->input);
413 kfree(ir); 413 kfree(ir);
414 414