diff options
-rw-r--r-- | drivers/media/IR/ir-keytable.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dm1105/dm1105.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/budget-ci.c | 4 | ||||
-rw-r--r-- | drivers/media/video/bt8xx/bttv-input.c | 4 | ||||
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-input.c | 4 | ||||
-rw-r--r-- | drivers/media/video/cx23885/cx23885-input.c | 4 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-input.c | 4 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-input.c | 4 | ||||
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 4 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-input.c | 4 | ||||
-rw-r--r-- | include/media/ir-core.h | 2 |
11 files changed, 21 insertions, 21 deletions
diff --git a/drivers/media/IR/ir-keytable.c b/drivers/media/IR/ir-keytable.c index ddb8a0f8af4d..e9c9bd34af65 100644 --- a/drivers/media/IR/ir-keytable.c +++ b/drivers/media/IR/ir-keytable.c | |||
@@ -450,7 +450,7 @@ int ir_input_register(struct input_dev *input_dev, | |||
450 | } | 450 | } |
451 | EXPORT_SYMBOL_GPL(ir_input_register); | 451 | EXPORT_SYMBOL_GPL(ir_input_register); |
452 | 452 | ||
453 | void ir_input_free(struct input_dev *dev) | 453 | void ir_input_unregister(struct input_dev *dev) |
454 | { | 454 | { |
455 | struct ir_input_dev *ir_dev = input_get_drvdata(dev); | 455 | struct ir_input_dev *ir_dev = input_get_drvdata(dev); |
456 | struct ir_scancode_table *rc_tab = &ir_dev->rc_tab; | 456 | struct ir_scancode_table *rc_tab = &ir_dev->rc_tab; |
@@ -467,7 +467,7 @@ void ir_input_free(struct input_dev *dev) | |||
467 | kfree(ir_dev); | 467 | kfree(ir_dev); |
468 | input_set_drvdata(dev, NULL); | 468 | input_set_drvdata(dev, NULL); |
469 | } | 469 | } |
470 | EXPORT_SYMBOL_GPL(ir_input_free); | 470 | EXPORT_SYMBOL_GPL(ir_input_unregister); |
471 | 471 | ||
472 | int ir_core_debug; /* ir_debug level (0,1,2) */ | 472 | int ir_core_debug; /* ir_debug level (0,1,2) */ |
473 | EXPORT_SYMBOL_GPL(ir_core_debug); | 473 | EXPORT_SYMBOL_GPL(ir_core_debug); |
diff --git a/drivers/media/dvb/dm1105/dm1105.c b/drivers/media/dvb/dm1105/dm1105.c index 53e3f2a7d31a..34e4e569cc7d 100644 --- a/drivers/media/dvb/dm1105/dm1105.c +++ b/drivers/media/dvb/dm1105/dm1105.c | |||
@@ -613,7 +613,7 @@ int __devinit dm1105_ir_init(struct dm1105dvb *dm1105) | |||
613 | 613 | ||
614 | err = input_register_device(input_dev); | 614 | err = input_register_device(input_dev); |
615 | if (err) { | 615 | if (err) { |
616 | ir_input_free(input_dev); | 616 | ir_input_unregister(input_dev); |
617 | input_free_device(input_dev); | 617 | input_free_device(input_dev); |
618 | return err; | 618 | return err; |
619 | } | 619 | } |
@@ -623,7 +623,7 @@ int __devinit dm1105_ir_init(struct dm1105dvb *dm1105) | |||
623 | 623 | ||
624 | void __devexit dm1105_ir_exit(struct dm1105dvb *dm1105) | 624 | void __devexit dm1105_ir_exit(struct dm1105dvb *dm1105) |
625 | { | 625 | { |
626 | ir_input_free(dm1105->ir.input_dev); | 626 | ir_input_unregister(dm1105->ir.input_dev); |
627 | input_unregister_device(dm1105->ir.input_dev); | 627 | input_unregister_device(dm1105->ir.input_dev); |
628 | } | 628 | } |
629 | 629 | ||
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c index 7d193ebc0aea..9c9070a403dd 100644 --- a/drivers/media/dvb/ttpci/budget-ci.c +++ b/drivers/media/dvb/ttpci/budget-ci.c | |||
@@ -286,7 +286,7 @@ static int msp430_ir_init(struct budget_ci *budget_ci) | |||
286 | return 0; | 286 | return 0; |
287 | 287 | ||
288 | out2: | 288 | out2: |
289 | ir_input_free(input_dev); | 289 | ir_input_unregister(input_dev); |
290 | input_free_device(input_dev); | 290 | input_free_device(input_dev); |
291 | out1: | 291 | out1: |
292 | return error; | 292 | return error; |
@@ -304,7 +304,7 @@ static void msp430_ir_deinit(struct budget_ci *budget_ci) | |||
304 | del_timer_sync(&dev->timer); | 304 | del_timer_sync(&dev->timer); |
305 | ir_input_nokey(dev, &budget_ci->ir.state); | 305 | ir_input_nokey(dev, &budget_ci->ir.state); |
306 | 306 | ||
307 | ir_input_free(dev); | 307 | ir_input_unregister(dev); |
308 | input_unregister_device(dev); | 308 | input_unregister_device(dev); |
309 | } | 309 | } |
310 | 310 | ||
diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c index 84a957e52c4b..0e1a7aabefba 100644 --- a/drivers/media/video/bt8xx/bttv-input.c +++ b/drivers/media/video/bt8xx/bttv-input.c | |||
@@ -403,7 +403,7 @@ int bttv_input_init(struct bttv *btv) | |||
403 | bttv_ir_stop(btv); | 403 | bttv_ir_stop(btv); |
404 | btv->remote = NULL; | 404 | btv->remote = NULL; |
405 | err_out_free: | 405 | err_out_free: |
406 | ir_input_free(input_dev); | 406 | ir_input_unregister(input_dev); |
407 | input_free_device(input_dev); | 407 | input_free_device(input_dev); |
408 | kfree(ir); | 408 | kfree(ir); |
409 | return err; | 409 | return err; |
@@ -415,7 +415,7 @@ void bttv_input_fini(struct bttv *btv) | |||
415 | return; | 415 | return; |
416 | 416 | ||
417 | bttv_ir_stop(btv); | 417 | bttv_ir_stop(btv); |
418 | ir_input_free(btv->remote->dev); | 418 | ir_input_unregister(btv->remote->dev); |
419 | input_unregister_device(btv->remote->dev); | 419 | input_unregister_device(btv->remote->dev); |
420 | kfree(btv->remote); | 420 | kfree(btv->remote); |
421 | btv->remote = NULL; | 421 | btv->remote = NULL; |
diff --git a/drivers/media/video/cx231xx/cx231xx-input.c b/drivers/media/video/cx231xx/cx231xx-input.c index cd135f01b9c1..5eba1ec1205b 100644 --- a/drivers/media/video/cx231xx/cx231xx-input.c +++ b/drivers/media/video/cx231xx/cx231xx-input.c | |||
@@ -226,7 +226,7 @@ err_out_stop: | |||
226 | cx231xx_ir_stop(ir); | 226 | cx231xx_ir_stop(ir); |
227 | dev->ir = NULL; | 227 | dev->ir = NULL; |
228 | err_out_free: | 228 | err_out_free: |
229 | ir_input_free(input_dev); | 229 | ir_input_unregister(input_dev); |
230 | input_free_device(input_dev); | 230 | input_free_device(input_dev); |
231 | kfree(ir); | 231 | kfree(ir); |
232 | return err; | 232 | return err; |
@@ -241,7 +241,7 @@ int cx231xx_ir_fini(struct cx231xx *dev) | |||
241 | return 0; | 241 | return 0; |
242 | 242 | ||
243 | cx231xx_ir_stop(ir); | 243 | cx231xx_ir_stop(ir); |
244 | ir_input_free(ir->input); | 244 | ir_input_unregister(ir->input); |
245 | input_unregister_device(ir->input); | 245 | input_unregister_device(ir->input); |
246 | kfree(ir); | 246 | kfree(ir); |
247 | 247 | ||
diff --git a/drivers/media/video/cx23885/cx23885-input.c b/drivers/media/video/cx23885/cx23885-input.c index 469e083dd5f8..2a5e4d959e8e 100644 --- a/drivers/media/video/cx23885/cx23885-input.c +++ b/drivers/media/video/cx23885/cx23885-input.c | |||
@@ -407,7 +407,7 @@ err_out_stop: | |||
407 | cx23885_input_ir_stop(dev); | 407 | cx23885_input_ir_stop(dev); |
408 | dev->ir_input = NULL; | 408 | dev->ir_input = NULL; |
409 | err_out_free: | 409 | err_out_free: |
410 | ir_input_free(input_dev); | 410 | ir_input_unregister(input_dev); |
411 | input_free_device(input_dev); | 411 | input_free_device(input_dev); |
412 | kfree(ir); | 412 | kfree(ir); |
413 | return ret; | 413 | return ret; |
@@ -420,7 +420,7 @@ void cx23885_input_fini(struct cx23885_dev *dev) | |||
420 | 420 | ||
421 | if (dev->ir_input == NULL) | 421 | if (dev->ir_input == NULL) |
422 | return; | 422 | return; |
423 | ir_input_free(dev->ir_input->dev); | 423 | ir_input_unregister(dev->ir_input->dev); |
424 | input_unregister_device(dev->ir_input->dev); | 424 | input_unregister_device(dev->ir_input->dev); |
425 | kfree(dev->ir_input); | 425 | kfree(dev->ir_input); |
426 | dev->ir_input = NULL; | 426 | dev->ir_input = NULL; |
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 | ||
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c index 5ddeb421ed58..9dc4e142726b 100644 --- a/drivers/media/video/em28xx/em28xx-input.c +++ b/drivers/media/video/em28xx/em28xx-input.c | |||
@@ -422,7 +422,7 @@ int em28xx_ir_init(struct em28xx *dev) | |||
422 | em28xx_ir_stop(ir); | 422 | em28xx_ir_stop(ir); |
423 | dev->ir = NULL; | 423 | dev->ir = NULL; |
424 | err_out_free: | 424 | err_out_free: |
425 | ir_input_free(input_dev); | 425 | ir_input_unregister(input_dev); |
426 | input_free_device(input_dev); | 426 | input_free_device(input_dev); |
427 | kfree(ir); | 427 | kfree(ir); |
428 | return err; | 428 | return err; |
@@ -437,7 +437,7 @@ int em28xx_ir_fini(struct em28xx *dev) | |||
437 | return 0; | 437 | return 0; |
438 | 438 | ||
439 | em28xx_ir_stop(ir); | 439 | em28xx_ir_stop(ir); |
440 | ir_input_free(ir->input); | 440 | ir_input_unregister(ir->input); |
441 | input_unregister_device(ir->input); | 441 | input_unregister_device(ir->input); |
442 | kfree(ir); | 442 | kfree(ir); |
443 | 443 | ||
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index 2856e780772e..9d8e78dc614e 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -460,7 +460,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
460 | return 0; | 460 | return 0; |
461 | 461 | ||
462 | err_out_free: | 462 | err_out_free: |
463 | ir_input_free(input_dev); | 463 | ir_input_unregister(input_dev); |
464 | input_free_device(input_dev); | 464 | input_free_device(input_dev); |
465 | kfree(ir); | 465 | kfree(ir); |
466 | return err; | 466 | return err; |
@@ -474,7 +474,7 @@ static int ir_remove(struct i2c_client *client) | |||
474 | cancel_delayed_work_sync(&ir->work); | 474 | cancel_delayed_work_sync(&ir->work); |
475 | 475 | ||
476 | /* unregister device */ | 476 | /* unregister device */ |
477 | ir_input_free(ir->input); | 477 | ir_input_unregister(ir->input); |
478 | input_unregister_device(ir->input); | 478 | input_unregister_device(ir->input); |
479 | 479 | ||
480 | /* free memory */ | 480 | /* free memory */ |
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c index 411a8410620e..5093e7a0d58c 100644 --- a/drivers/media/video/saa7134/saa7134-input.c +++ b/drivers/media/video/saa7134/saa7134-input.c | |||
@@ -742,7 +742,7 @@ int saa7134_input_init1(struct saa7134_dev *dev) | |||
742 | saa7134_ir_stop(dev); | 742 | saa7134_ir_stop(dev); |
743 | dev->remote = NULL; | 743 | dev->remote = NULL; |
744 | err_out_free: | 744 | err_out_free: |
745 | ir_input_free(input_dev); | 745 | ir_input_unregister(input_dev); |
746 | input_free_device(input_dev); | 746 | input_free_device(input_dev); |
747 | kfree(ir); | 747 | kfree(ir); |
748 | return err; | 748 | return err; |
@@ -754,7 +754,7 @@ void saa7134_input_fini(struct saa7134_dev *dev) | |||
754 | return; | 754 | return; |
755 | 755 | ||
756 | saa7134_ir_stop(dev); | 756 | saa7134_ir_stop(dev); |
757 | ir_input_free(dev->remote->dev); | 757 | ir_input_unregister(dev->remote->dev); |
758 | input_unregister_device(dev->remote->dev); | 758 | input_unregister_device(dev->remote->dev); |
759 | kfree(dev->remote); | 759 | kfree(dev->remote); |
760 | dev->remote = NULL; | 760 | dev->remote = NULL; |
diff --git a/include/media/ir-core.h b/include/media/ir-core.h index ea76c199b67d..299d201e1339 100644 --- a/include/media/ir-core.h +++ b/include/media/ir-core.h | |||
@@ -57,6 +57,6 @@ int ir_set_keycode_table(struct input_dev *input_dev, | |||
57 | int ir_roundup_tablesize(int n_elems); | 57 | int ir_roundup_tablesize(int n_elems); |
58 | int ir_input_register(struct input_dev *dev, | 58 | int ir_input_register(struct input_dev *dev, |
59 | struct ir_scancode_table *ir_codes); | 59 | struct ir_scancode_table *ir_codes); |
60 | void ir_input_free(struct input_dev *input_dev); | 60 | void ir_input_unregister(struct input_dev *input_dev); |
61 | 61 | ||
62 | #endif | 62 | #endif |