aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ir-kbd-i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/ir-kbd-i2c.c')
-rw-r--r--drivers/media/video/ir-kbd-i2c.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c
index a7c41d32f414..04f192a0398a 100644
--- a/drivers/media/video/ir-kbd-i2c.c
+++ b/drivers/media/video/ir-kbd-i2c.c
@@ -471,7 +471,7 @@ static const struct i2c_device_id ir_kbd_id[] = {
471 { } 471 { }
472}; 472};
473 473
474static struct i2c_driver driver = { 474static struct i2c_driver ir_kbd_driver = {
475 .driver = { 475 .driver = {
476 .name = "ir-kbd-i2c", 476 .name = "ir-kbd-i2c",
477 }, 477 },
@@ -480,21 +480,10 @@ static struct i2c_driver driver = {
480 .id_table = ir_kbd_id, 480 .id_table = ir_kbd_id,
481}; 481};
482 482
483module_i2c_driver(ir_kbd_driver);
484
483/* ----------------------------------------------------------------------- */ 485/* ----------------------------------------------------------------------- */
484 486
485MODULE_AUTHOR("Gerd Knorr, Michal Kochanowicz, Christoph Bartelmus, Ulrich Mueller"); 487MODULE_AUTHOR("Gerd Knorr, Michal Kochanowicz, Christoph Bartelmus, Ulrich Mueller");
486MODULE_DESCRIPTION("input driver for i2c IR remote controls"); 488MODULE_DESCRIPTION("input driver for i2c IR remote controls");
487MODULE_LICENSE("GPL"); 489MODULE_LICENSE("GPL");
488
489static int __init ir_init(void)
490{
491 return i2c_add_driver(&driver);
492}
493
494static void __exit ir_fini(void)
495{
496 i2c_del_driver(&driver);
497}
498
499module_init(ir_init);
500module_exit(ir_fini);